UPSTREAM: usbnet: cleanup after bind() in probe()
authorOliver Neukum <oneukum@suse.com>
Mon, 7 Mar 2016 10:31:10 +0000 (11:31 +0100)
committerMark Salyzyn <salyzyn@google.com>
Mon, 20 Jun 2016 19:56:21 +0000 (12:56 -0700)
commitab4f14dd052ba453558a8913d8d5547abbfc7b88
tree88fae4f07aaee7d0eef9bddc4ca87426d94f2923
parentd053106b93363b77ef8ca60352069cbdc8fa0f87
UPSTREAM: usbnet: cleanup after bind() in probe()

(cherry pick from 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>
Bug: 28744625
drivers/net/usb/usbnet.c