usb: renesas_usbhs: fix error return code of usbhsf_pkt_handler()
[linux-2.6-block.git] / drivers / usb / renesas_usbhs / fifo.c
index e6fa13701808247542ea6905a0659b194f466fd8..b5e7991dc7d9e537fac334464afb4a518577f522 100644 (file)
@@ -160,8 +160,10 @@ static int usbhsf_pkt_handler(struct usbhs_pipe *pipe, int type)
        usbhs_lock(priv, flags);
 
        pkt = __usbhsf_pkt_get(pipe);
-       if (!pkt)
+       if (!pkt) {
+               ret = -EINVAL;
                goto __usbhs_pkt_handler_end;
+       }
 
        switch (type) {
        case USBHSF_PKT_PREPARE: