Skip to content

Commit 6972633

Browse files
committed
Merge tag 'auxdisplay-6.3' of https://github.com/ojeda/linux
Pull auxdisplay fix from Miguel Ojeda: - hd44780: Fix potential memory leak in hd44780_remove() (Jianglei Nie) * tag 'auxdisplay-6.3' of https://github.com/ojeda/linux: auxdisplay: hd44780: Fix potential memory leak in hd44780_remove()
2 parents 7c2bc4e + ddf75a8 commit 6972633

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/auxdisplay/hd44780.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,10 @@ static int hd44780_probe(struct platform_device *pdev)
322322
static int hd44780_remove(struct platform_device *pdev)
323323
{
324324
struct charlcd *lcd = platform_get_drvdata(pdev);
325+
struct hd44780_common *hdc = lcd->drvdata;
325326

326327
charlcd_unregister(lcd);
328+
kfree(hdc->hd44780);
327329
kfree(lcd->drvdata);
328330

329331
kfree(lcd);

0 commit comments

Comments
 (0)