]> git.baikalelectronics.ru Git - kernel.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>
Thu, 25 Oct 2012 16:39:38 +0000 (09:39 -0700)
commit02c0c2bcaadc8e68652ebd5590cfadc34ba3253b
tree7d09328e267b681f93de83be0859451c36b9df1b
parentea60a5875d13dd85099d84c07832e2646b5ee6ea
USB: qcserial: fix interface-data memory leak in error path

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

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