usbnet: cleanup after bind() in probe()
authorOliver Neukum <oneukum@suse.com>
Mon, 7 Mar 2016 10:31:10 +0000 (11:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Jun 2016 08:42:49 +0000 (10:42 +0200)
commitcfa74bdc32606cbcca59635f47e6069980cc1202
tree4d9d8a9cace3d93fcc69771d026b0f1ba8d99eb0
parent13eec5c1f4aebb114fce51e7286562485bb8cd8c
usbnet: cleanup after bind() in probe()

commit 1666984c8625b3db19a9abc298931d35ab7bc64b upstream.

In case bind() works, but a later error forces bailing
in probe() in error cases work and a timer may be scheduled.
They must be killed. This fixes an error case related to
the double free reported in
http://www.spinics.net/lists/netdev/msg367669.html
and needs to go on top of Linus' fix to cdc-ncm.

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/net/usb/usbnet.c