usbnet: cleanup after bind() in probe()
authorOliver Neukum <oneukum@suse.com>
Mon, 7 Mar 2016 10:31:10 +0000 (11:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2016 06:41:59 +0000 (15:41 +0900)
commit2d11623bd01a311c868d2e90fbdda8b5eec39a2f
tree28ab3b8f004adf3b6ebd74322dde1d060eb81b64
parent3aaa64b61a787d0aedc5c3fe36102419fc4eeb93
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/usb/usbnet.c