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

From
Andy Shevchenko <hidden>
Date
2021-11-15 10:48:25
Reply to
Ilia Sergachev, 2021-11-15
On Mon, Nov 15, 2021 at 4:34 AM Ilia Sergachev [off-list 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
Thread (5 messages) 5 messages, 3 authors, last reply 2021-11-15
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help