usbnet: cleanup after bind() in probe()
authorOliver Neukum <oneukum@suse.com>
Mon, 7 Mar 2016 10:31:10 +0000 (11:31 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Tue, 12 Jul 2016 12:47:31 +0000 (08:47 -0400)
commit17c09e3348e1c0a5f92005319c49c71d3e3a6dc4
treeabc439966025c59c46877099ef44bdb25cf6921d
parentcb7669cfa19a8df2edabdec4d883e839362788b8
usbnet: cleanup after bind() in probe()

[ Upstream commit 1666984c8625b3db19a9abc298931d35ab7bc64b ]

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: Sasha Levin <sasha.levin@oracle.com>
drivers/net/usb/usbnet.c