]> git.baikalelectronics.ru Git - kernel.git/commit
USB: mxu11x0: fix memory leak on usb_serial private data
authorMathieu OTHACEHE <m.othacehe@gmail.com>
Mon, 4 Jan 2016 18:49:36 +0000 (19:49 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 25 Jan 2016 11:47:47 +0000 (12:47 +0100)
commit502bbe3f8104d58e6b8d1c033407e2f4ca472d38
tree7e59c255d1595674a638d708cfcf7c9e953f8678
parent045abdf7f4c99e40e388f4d9920433000165bc48
USB: mxu11x0: fix memory leak on usb_serial private data

On nominal execution, private data allocated on port_probe and attach
are never freed. Add port_remove and release callbacks to free them
respectively.

Signed-off-by: Mathieu OTHACEHE <m.othacehe@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/mxu11x0.c