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: 8a34b0ae ("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>
Loading
-
mentioned in commit 77ce241f
-
mentioned in commit d74b9cfc
-
mentioned in commit 25d393bd
-
mentioned in commit 78793192
-
mentioned in commit d91c7782
-
mentioned in commit 263bad3f
-
mentioned in commit 878eedcc
-
mentioned in commit e824bdc1
-
mentioned in commit e11734c0
-
mentioned in commit 73b39766
-
mentioned in commit 57b822aa
-
mentioned in commit 99fbfc67
-
mentioned in commit c63381f9
-
mentioned in commit 23b80b3b
Please register or sign in to comment