mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
USB: cdc-acm: Fix stupid NULL pointer in resume()
Stupid logic bug passing a just nulled pointer Signed-off-by: Oliver Neukum <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
1082f57abf
commit
f0730924e9
1 changed files with 1 additions and 1 deletions
|
|
@ -1441,7 +1441,7 @@ static int acm_resume(struct usb_interface *intf)
|
|||
wb = acm->delayed_wb;
|
||||
acm->delayed_wb = NULL;
|
||||
spin_unlock_irq(&acm->write_lock);
|
||||
acm_start_wb(acm, acm->delayed_wb);
|
||||
acm_start_wb(acm, wb);
|
||||
} else {
|
||||
spin_unlock_irq(&acm->write_lock);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue