aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBjørn Mork <bjorn@mork.no>2016-07-08 11:14:51 -0700
committerAriel Yin <ayin@google.com>2016-07-18 21:27:24 +0000
commit73b39766813da27ebe998345909e04164628b9f9 (patch)
tree59459b12a5df7c1a980afc2845ae88b955ffafff /net/unix/af_unix.c
parent6f8fc742f937c37da6eb0baaac2c50f8f19aaf1d (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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions