|
@@ -1688,8 +1688,10 @@ usbnet_probe (struct usb_interface *udev, const struct usb_device_id *prod)
|
|
if (dev->can_dma_sg && !(info->flags & FLAG_SEND_ZLP) &&
|
|
if (dev->can_dma_sg && !(info->flags & FLAG_SEND_ZLP) &&
|
|
!(info->flags & FLAG_MULTI_PACKET)) {
|
|
!(info->flags & FLAG_MULTI_PACKET)) {
|
|
dev->padding_pkt = kzalloc(1, GFP_KERNEL);
|
|
dev->padding_pkt = kzalloc(1, GFP_KERNEL);
|
|
- if (!dev->padding_pkt)
|
|
|
|
|
|
+ if (!dev->padding_pkt) {
|
|
|
|
+ status = -ENOMEM;
|
|
goto out4;
|
|
goto out4;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
status = register_netdev (net);
|
|
status = register_netdev (net);
|