From: Roel Kluin Date: Fri, 20 Nov 2009 19:12:33 +0000 (+0100) Subject: Staging: rtl8192su: fix test for negative error in rtl8192_rx_isr() X-Git-Tag: v5.15~31021^2~12 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=aad445f8ccd554cd3013af7bd0a6cfae599a2505;p=mirror_ubuntu-kernels.git Staging: rtl8192su: fix test for negative error in rtl8192_rx_isr() The error tested for is negative Signed-off-by: Roel Kluin Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192su/r8192U_core.c b/drivers/staging/rtl8192su/r8192U_core.c index 66274d7666ff..b492ff588b8c 100644 --- a/drivers/staging/rtl8192su/r8192U_core.c +++ b/drivers/staging/rtl8192su/r8192U_core.c @@ -1501,7 +1501,7 @@ static void rtl8192_rx_isr(struct urb *urb) urb->context = skb; skb_queue_tail(&priv->rx_queue, skb); err = usb_submit_urb(urb, GFP_ATOMIC); - if(err && err != EPERM) + if(err && err != -EPERM) printk("can not submit rxurb, err is %x,URB status is %x\n",err,urb->status); }