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

commit c2dd4a8eac7821fed2c2d19e4607d0986b53b0fe upstream.

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

Note that the usb device id is stored at probe so that it can be used
in attach to determine send-setup blacklisting.

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