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)
commit028635d6b5b42de0e0fe5f5c92e1b99868e81a29
tree7e59c255d1595674a638d708cfcf7c9e953f8678
parente03cdf22a2727c60307be6a729233edab3bfda9c
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