Skip to content

Commit

Permalink
auxdisplay: hd44780: Fix oops on module unloading
Browse files Browse the repository at this point in the history
commit 333ff32 upstream.

Fixes: 718e05e ("auxdisplay: Introduce hd44780_common.[ch]")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/lkml/CAHp75VfKyqy+vM0XkP9Yb+znGOTVT4zYCRY3A3nQ7C3WNUVN0g@mail.gmail.com/
Reported-By: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Lars Poeschel <poeschel@lemonage.de>
Tested-by: Andy Shevchenko <andy.shevchenko@gmail.com>
[added Link, Fixes, Cc stable tags, edited message]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
poeschel authored and gregkh committed Sep 15, 2021
1 parent 6fc340f commit 1825ddc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/auxdisplay/hd44780.c
Expand Up @@ -323,8 +323,8 @@ static int hd44780_remove(struct platform_device *pdev)
{
struct charlcd *lcd = platform_get_drvdata(pdev);

kfree(lcd->drvdata);
charlcd_unregister(lcd);
kfree(lcd->drvdata);

kfree(lcd);
return 0;
Expand Down

0 comments on commit 1825ddc

Please sign in to comment.