diff options
author | 2023-03-02 09:37:58 -0800 | |
---|---|---|
committer | 2023-03-02 09:37:58 -0800 | |
commit | 6972633c58fd13c02dcaabcb6be380a98feda9fa (patch) | |
tree | 81489f8e2d6c94bb700e859d21fa2ff704fc66f7 | |
parent | Merge tag 'driver-core-6.3-rc1_2' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core (diff) | |
parent | auxdisplay: hd44780: Fix potential memory leak in hd44780_remove() (diff) | |
download | wireguard-linux-6972633c58fd13c02dcaabcb6be380a98feda9fa.tar.xz wireguard-linux-6972633c58fd13c02dcaabcb6be380a98feda9fa.zip |
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()
-rw-r--r-- | drivers/auxdisplay/hd44780.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/auxdisplay/hd44780.c b/drivers/auxdisplay/hd44780.c index 8b2a0eb3f32a..d56a5d508ccd 100644 --- a/drivers/auxdisplay/hd44780.c +++ b/drivers/auxdisplay/hd44780.c @@ -322,8 +322,10 @@ fail1: static int hd44780_remove(struct platform_device *pdev) { struct charlcd *lcd = platform_get_drvdata(pdev); + struct hd44780_common *hdc = lcd->drvdata; charlcd_unregister(lcd); + kfree(hdc->hd44780); kfree(lcd->drvdata); kfree(lcd); |