Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 555d8e45 authored by Bjørn Mork's avatar Bjørn Mork Committed by Gerrit - the friendly Code Review server
Browse files

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.

Conflicts:
	drivers/net/usb/cdc_ncm.c

Fixes: 8a34b0ae ("usbnet: cdc_ncm: apply usbnet_link_change")
Reported-by: default avatarAndrey Konovalov <andreyknvl@gmail.com>
Suggested-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: default avatarBjørn Mork <bjorn@mork.no>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarDennis Cagle <d-cagle@codeaurora.org>
Git-repo: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git
Git-commit: 4d06dd537f95683aba3651098ae288b7cbff8274
(cherry picked from commit 4d06dd537f95683aba3651098ae288b7cbff8274)
Change-Id: I0052ab287e40bac491a55f324eca4917cf9980ae
parent 338e6cc3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment