usbnet: cleanup after bind() in probe()
commit900aa9788446a8bc7fc40f21199bbe1dbdc1bf19
authorOliver Neukum <oneukum@suse.com>
Mon, 7 Mar 2016 10:31:10 +0000 (7 11:31 +0100)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 11 Jul 2016 03:07:00 +0000 (10 23:07 -0400)
tree5db6fa7bbeac5cfee303a3a268c630b8c275e09d
parentcf852e989018e95f25e8a620f77e380812a9460f
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