forked from luck/tmp_suning_uos_patched
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 <lsorense@csclub.uwaterloo.ca> Acked-by: Johan Hovold <jhovold@gmail.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
036546bf95
commit
f7bc505166
@ -959,6 +959,7 @@ static void sierra_release(struct usb_serial *serial)
|
|||||||
continue;
|
continue;
|
||||||
kfree(portdata);
|
kfree(portdata);
|
||||||
}
|
}
|
||||||
|
kfree(serial->private);
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_PM
|
#ifdef CONFIG_PM
|
||||||
|
Loading…
Reference in New Issue
Block a user