# Re: \[PATCH\] serial: liteuart: fix missing drvdata

- From: Andy Shevchenko \<hidden\>
- Date: 2021-11-15 10:48:25 
- List: linux-serial
- Page: https://ratatoskr.run/linux-serial/2021/11/16405167
- Thread: https://ratatoskr.run/linux-serial/2021/11/16405162/t.md

```text
On Mon, Nov 15, 2021 at 4:34 AM Ilia Sergachev [ref] wrote:

Besides what Greg asked for, can you rephrase Subject to something like
"serial: liteuart: Fix NULL pointer dereference in ->remove()"

> drvdata has to be set in _probe() - otherwise platform_get_drvdata()
> causes null pointer dereference BUG in _remove()

Don't forget the grammatical period.

Code looks good to me, though.

-- 
With Best Regards,
Andy Shevchenko
```
