]> www.infradead.org Git - users/jedix/linux-maple.git/commit
USB: sierra: fix memory leak in probe error path
authorJohan Hovold <jhovold@gmail.com>
Thu, 25 Oct 2012 08:29:18 +0000 (10:29 +0200)
committerGuangyu Sun <guangyu.sun@oracle.com>
Tue, 6 Nov 2012 00:33:26 +0000 (16:33 -0800)
commit4d98a750d6c9089685b9ce80c00cba8098c21aaf
treeb5821793b407b25129b2dfe1791dc42c654d5368
parent1df3b7aa227f1750f3fcfc7f94f16c20c9a91199
USB: sierra: fix memory leak in probe error path

commit 084817d79399ab5ccab2f90a148b0369912a8369 upstream.

Move interface data allocation to attach so that it is deallocated on
errors in usb-serial probe.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
drivers/usb/serial/sierra.c