Files
linux/drivers/net/usb
Bjørn Mork 66e5d7b47c cdc_ncm: do not call usbnet_link_change from cdc_ncm_bind
commit 4d06dd537f upstream.

usbnet_link_change will call schedule_work and should be
avoided if bind is failing. Otherwise we will end up with
scheduled work referring to a netdev which has gone away.

Instead of making the call conditional, we can just defer
it to usbnet_probe, using the driver_info flag made for
this purpose.

Fixes: 8a34b0ae87 ("usbnet: cdc_ncm: apply usbnet_link_change")
Reported-by: Andrey Konovalov <andreyknvl@gmail.com>
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-08-16 09:30:48 +02:00
..
2015-09-15 12:43:49 -07:00
2013-12-06 12:37:55 -05:00
2014-05-13 17:43:20 -04:00
2016-01-04 22:02:08 -05:00
2015-09-22 16:14:32 -07:00
2015-09-22 16:14:32 -07:00