Skip to content
Snippets Groups Projects
Commit 57b822aa authored by Yueyao (Nathan) Zhu's avatar Yueyao (Nathan) Zhu Committed by Thierry Strudel
Browse files

BACKPORT: cdc_ncm: do not call usbnet_link_change from cdc_ncm_bind

Bug: 28744625

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.

(cherry picked from commit 4d06dd537f95683aba3651098ae288b7cbff8274)

Change-Id: Ia3cdad73baea0dd7ff32bfd09b9f0a4bb596193d
parent 20b121e6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment