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:03:00 +0000 (10:03 -0700)
commit5b312595bebcd2216f8617778a55ccaa93fc5a51
treea64e7ea409b286bb3eaa8ed7a7d90db56c5334dc
parent96e42e6acf74ad78cf9f37c2f2f2998ad7814929
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