]> git.kernelconcepts.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Oct 2012 17:10:17 +0000 (10:10 -0700)
commit99ad30180d1a0de0fbe4adfd8d24085ac77e1a24
treedcf1649435a68681a000de2332f3455f2db4cfd8
parentd9b48922b9d6dc1c02586d36639a27917f3dbe46
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>
drivers/usb/serial/sierra.c