Skip to content
Snippets Groups Projects
Commit a45d2007 authored by Oliver Neukum's avatar Oliver Neukum Committed by Tasayco Loarte, VictorX
Browse files

UPSTREAM: usbnet: cleanup after bind() in probe()

Bug: 28744625

In case bind() works, but a later error forces bailing
in probe() in error cases work and a timer may be scheduled.
They must be killed. This fixes an error case related to
the double free reported in
http://www.spinics.net/lists/netdev/msg367669.html
and needs to go on top of Linus' fix to cdc-ncm.

(cherry picked from commit 1666984c8625b3db19a9abc298931d35ab7bc64b)

Bug: 31554728
Change-Id: Iec7d659d903eab0adee1c91cb8f5b84e9775c09d
Tracked-On: https://jira01.devtools.intel.com/browse/AW-1795


Signed-off-by: default avatarOliver Neukum <ONeukum@suse.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarYueyao (Nathan) Zhu <yueyao@google.com>
Signed-off-by: default avatarVictor Tasayco Loarte <victorx.tasayco.loarte@intel.com>
parent 1890a33b
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment