summaryrefslogtreecommitdiff
path: root/kernel/sysctl_binary.c
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2016-07-08 13:24:09 -0700
committerMin Chong <mchong@google.com>2016-07-08 13:24:09 -0700
commit50437c019f146eb138d819d558a3f562419573fa (patch)
tree2ca3239b9bb1ad5c10d43f8738a2090551ccf4b7 /kernel/sysctl_binary.c
parente6ec611adde326cd28f0692a263b31821f86b071 (diff)
UPSTREAM: cdc_ncm: do not call usbnet_link_change from cdc_ncm_bind
(cherry pick from commit 4d06dd537f95683aba3651098ae288b7cbff8274) 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> Change-Id: Id9a6d02bdd98bf495d26595cf2cc90e480746186 Bug: 28744625
Diffstat (limited to 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions