Commit 333ff32d authored by Lars Poeschel's avatar Lars Poeschel Committed by Miguel Ojeda

auxdisplay: hd44780: Fix oops on module unloading

Fixes: 718e05ed ("auxdisplay: Introduce hd44780_common.[ch]")
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/lkml/CAHp75VfKyqy+vM0XkP9Yb+znGOTVT4zYCRY3A3nQ7C3WNUVN0g@mail.gmail.com/Reported-By: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: default avatarLars Poeschel <poeschel@lemonage.de>
Tested-by: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
[added Link, Fixes, Cc stable tags, edited message]
Signed-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent c784e46c
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment