]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/staging/usbip/vhci_hcd.c
Staging: usb-ip: vhci_hdc:Fix the returned error value
[net-next-2.6.git] / drivers / staging / usbip / vhci_hcd.c
index 114db8b26028f86dab2da8d356b437de7bf6fd5c..6e91fc2bd850a2bf9c3e2f11f40fb935b93df873 100644 (file)
@@ -594,7 +594,7 @@ static int vhci_urb_enqueue(struct usb_hcd *hcd, struct urb *urb,
 
                if (type != PIPE_CONTROL || !ctrlreq) {
                        dev_err(dev, "invalid request to devnum 0\n");
-                       ret = EINVAL;
+                       ret = -EINVAL;
                        goto no_need_xmit;
                }
 
@@ -653,7 +653,7 @@ no_need_unlink:
 
        usb_hcd_giveback_urb(vhci_to_hcd(the_controller), urb, urb->status);
 
-       return 0;
+       return ret;
 }
 
 /*