mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-19 06:47:48 +00:00
staging: usbip: fix memory leak
sdev should be freed if stub_add_files() failed. Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
ab366c1a23
commit
47c7157f34
@ -438,6 +438,8 @@ static int stub_probe(struct usb_interface *interface,
|
||||
if (err) {
|
||||
dev_err(&interface->dev, "create sysfs files for %s\n",
|
||||
udev_busid);
|
||||
usb_set_intfdata(interface, 0);
|
||||
stub_device_free(sdev);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user