Commit d1bc364e authored by Patrick Boettcher's avatar Patrick Boettcher Committed by Greg Kroah-Hartman

[PATCH] USB: fix bug in usb-skeleton.c

parent 0e80d432
......@@ -516,7 +516,7 @@ static int skel_probe(struct usb_interface *interface, const struct usb_device_i
dev = kmalloc (sizeof(struct usb_skel), GFP_KERNEL);
if (dev == NULL) {
err ("Out of memory");
goto error;
return -ENOMEM;
}
memset (dev, 0x00, sizeof (*dev));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment