forked from Minki/linux
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 @@ err_cleanup:
|
||||
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