mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
USB: serial: Fix memory leak in sierra_release()
I found a memory leak in sierra_release() (well sierra_probe() I guess) that looses 8 bytes each time the driver releases a device. Signed-off-by: Len Sorensen <[email protected]> Acked-by: Johan Hovold <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
036546bf95
commit
f7bc505166
1 changed files with 1 additions and 0 deletions
|
|
@ -959,6 +959,7 @@ static void sierra_release(struct usb_serial *serial)
|
|||
continue;
|
||||
kfree(portdata);
|
||||
}
|
||||
kfree(serial->private);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
|
|
|
|||
Loading…
Reference in a new issue