]> git.baikalelectronics.ru Git - kernel.git/commit
serdev: fix memleak on module unload
authorJohan Hovold <johan@kernel.org>
Wed, 13 Jun 2018 15:08:59 +0000 (17:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:34:39 +0000 (21:34 +0900)
commitd50b194326ca6da1308a793b50876f817a60ec8d
tree717497bd8219b6d293197920105533f307a37446
parentcc0cac9c02f01c9e3b7527865c2319d600fb20eb
serdev: fix memleak on module unload

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

Fixes: 09d099346407 ("serdev: Introduce new bus for serial attached devices")
Cc: stable <stable@vger.kernel.org> # 4.11
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serdev/core.c