Skip to contentSkip to conversation

patch "serdev: fix memleak on module unload" added to tty-linus

PATCH [email protected] 1 participant 1 message Jun 28, 2018

Subsystems (3)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

serdev: fix memleak on module unload

to my tty git tree which can be found at
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git
in the tty-linus branch.

The patch will show up in the next release of the linux-next tree (usually sometime within the next 24 hours during the week.)

The patch will hopefully also be merged in Linus's tree for the next -rc kernel release.

If you have any questions about this process, please let me know.

Quoted 1 line

From bc6cf3669d22371f573ab0305b3abf13887c0786 Mon Sep 17 00:00:00 2001

From: Johan Hovold <[email protected]>
Date: Wed, 13 Jun 2018 17:08:59 +0200
Subject: serdev: fix memleak on module unload

Make sure to free all resources associated with the ida on module exit.

Fixes cd6484e1830b ("serdev: Introduce new bus for serial attached devices")
Cc stable <[email protected]> # 4.11
---
 drivers/tty/serdev/core.c | 1 +
 1 file changed, 1 insertion(+)
drivers/tty/serdev/core.c +1 -0
index df93b727e984..9e59f4788589 100644
@@ -617,6 +617,7 @@ EXPORT_SYMBOL_GPL(__serdev_device_driver_register);
 static void __exit serdev_exit(void)
 {
 	bus_unregister(&serdev_bus_type);
+	ida_destroy(&ctrl_ida);
 }
 module_exit(serdev_exit);
 
Signature · 1 line
2.18.0