net: cdc_ncm: fix error path for single interface probing
authorBjørn Mork <bjorn@mork.no>
Mon, 21 Jan 2013 05:50:40 +0000 (05:50 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 Jan 2013 19:21:18 +0000 (14:21 -0500)
commit6b4ef60299e30daa8643218fde6152d8a01e2d4b
tree577c3d994d443afb01e707471cc6f5bba223d7ef
parent328d7b8a4ab045484e1cc09579abf13c8c6223e3
net: cdc_ncm: fix error path for single interface probing

commit bbc8d92 (net: cdc_ncm: add Huawei devices) implemented
support for devices with a single combined control and data
interface. Fix up the error path so that we do not double
release such interfaces in case of probing failures.

Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/cdc_ncm.c