USB: whiteheat: fix memory leak in error path
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 08:29:01 +0000 (10:29 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 30 Oct 2012 23:27:00 +0000 (23:27 +0000)
commit31945e40c63cbbb2040f81aa28418514b8908e1d
treeebafe241c88bf1242f3fcda4a587fbeb624b1bf2
parente18dbfae927d33d746f6bf8b14f2d030c12b3ba7
USB: whiteheat: fix memory leak in error path

commit c129197c99550d356cf5f69b046994dd53cd1b9d upstream.

Make sure command buffer is deallocated in case of errors during attach.

Cc: <support@connecttech.com>
Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/usb/serial/whiteheat.c