mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-23 02:49:44 +07:00
USB: kl5usb105: fix memory leak
Private data was not freed on error path in startup. Cc: stable <stable@kernel.org> Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
d733cec1ab
commit
313b0d80c1
@ -321,6 +321,7 @@ static int klsi_105_startup(struct usb_serial *serial)
|
||||
usb_free_urb(priv->write_urb_pool[j]);
|
||||
}
|
||||
}
|
||||
kfree(priv);
|
||||
usb_set_serial_port_data(serial->port[i], NULL);
|
||||
}
|
||||
return -ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user