]> git.baikalelectronics.ru Git - kernel.git/commit
USB: ipw: fix interface-data memory leak in error path
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 13:42:39 +0000 (15:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Oct 2012 16:39:37 +0000 (09:39 -0700)
commitd5d2494c3ce201b3c3771d4bdea8b630d26a26e3
tree2a672dee7be30a63ed74b549c9a0a188e3ecc763
parente994ba3bd2a364dac703844bb96d56f9a1724335
USB: ipw: 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/ipw.c