diff options
author | Alexey Klimov <[email protected]> | 2016-08-08 02:34:46 +0100 |
---|---|---|
committer | Johan Hovold <[email protected]> | 2016-08-08 13:41:17 +0200 |
commit | 647024a7df36014bbc4479d92d88e6b77c0afcf6 (patch) | |
tree | 62e8a15ea2e8180743bb43af45aedb0f6ed19693 /lib/mpi/mpi-bit.c | |
parent | 01d7956b58e644ea0d2e8d9340c5727a8fc39d70 (diff) |
USB: serial: fix memleak in driver-registration error path
udriver struct allocated by kzalloc() will not be freed
if usb_register() and next calls fail. This patch fixes this
by adding one more step with kfree(udriver) in error path.
Signed-off-by: Alexey Klimov <[email protected]>
Acked-by: Alan Stern <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions