Skip to content

Commit 333ff32

Browse files
poeschelojeda
authored andcommitted
auxdisplay: hd44780: Fix oops on module unloading
Fixes: 718e05e ("auxdisplay: Introduce hd44780_common.[ch]") Cc: [email protected] Link: https://lore.kernel.org/lkml/CAHp75VfKyqy+vM0XkP9Yb+znGOTVT4zYCRY3A3nQ7C3WNUVN0g@mail.gmail.com/ Reported-By: Andy Shevchenko <[email protected]> Signed-off-by: Lars Poeschel <[email protected]> Tested-by: Andy Shevchenko <[email protected]> [added Link, Fixes, Cc stable tags, edited message] Signed-off-by: Miguel Ojeda <[email protected]>
1 parent c784e46 commit 333ff32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/auxdisplay/hd44780.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,8 @@ static int hd44780_remove(struct platform_device *pdev)
323323
{
324324
struct charlcd *lcd = platform_get_drvdata(pdev);
325325

326-
kfree(lcd->drvdata);
327326
charlcd_unregister(lcd);
327+
kfree(lcd->drvdata);
328328

329329
kfree(lcd);
330330
return 0;

0 commit comments

Comments
 (0)