projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20dcff4
)
serdev: fix memleak on module unload
author
Johan Hovold
<
[email protected]
>
Wed, 13 Jun 2018 15:08:59 +0000
(17:08 +0200)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 28 Jun 2018 12:34:39 +0000
(21:34 +0900)
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
Signed-off-by: Johan Hovold <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/tty/serdev/core.c
patch
|
blob
|
history
diff --git
a/drivers/tty/serdev/core.c
b/drivers/tty/serdev/core.c
index df93b727e984ee3d185fa0f5a42cad09d63a3f65..9e59f4788589c879358ce12507362baec459533d 100644
(file)
--- a/
drivers/tty/serdev/core.c
+++ b/
drivers/tty/serdev/core.c
@@
-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);