summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/emulex
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2016-03-07 21:15:36 +0100
committerDavid S. Miller <davem@davemloft.net>2016-03-07 15:54:33 -0500
commit4d06dd537f95683aba3651098ae288b7cbff8274 (patch)
treedcec6c71e8c971a59085b6f26003642dd81acd58 /drivers/net/ethernet/emulex
parenta9d99ce28ed359d68cf6f3c1a69038aefedf6d6a (diff)
cdc_ncm: do not call usbnet_link_change from cdc_ncm_bind
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: 8a34b0ae8778 ("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>
Diffstat (limited to 'drivers/net/ethernet/emulex')
0 files changed, 0 insertions, 0 deletions