OSDN Git Service

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)
commitbc6cf3669d22371f573ab0305b3abf13887c0786
tree717497bd8219b6d293197920105533f307a37446
parent20dcff436e9fcd2e106b0ccc48a52206bc176d70
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 <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