]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: qcserial: fix interface-data memory leak in error path
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 13:42:41 +0000 (15:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:10:15 +0000 (10:10 -0700)
commitbf66cd30357174ed30c140f79b4016f4230a0066
treeeb736613d343e88193b6f1552ee93d377330dd63
parent1968e8d84329760f4722c5c3951aec28b5ece59b
USB: qcserial: fix interface-data memory leak in error path

commit 961be09e1ead58509ed4bed0d5819a15d8613d8d upstream.

Move interface data allocation to attach so that it is deallocated
should usb-serial probe fail.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/qcserial.c