staging: rtl8192u: fix wrong judgement in rtl8192_rx_isr
The 'EPERM' cannot appear in the previous path, we should use '-EPERM' to check it. For example: Call trace: ->rtl8192_rx_isr ->usb_submit_urb ->usb_hcd_submit_urb ->rh_urb_enqueue ->rh_queue_status ->usb_hcd_link_urb_to_ep Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com> Link: https://lore.kernel.org/r/20201028122648.47959-1-zhangqilong3@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d1e7550ad0
commit
071dc1787a
@ -867,7 +867,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)
|
||||
netdev_err(dev,
|
||||
"can not submit rxurb, err is %x, URB status is %x\n",
|
||||
err, urb->status);
|
||||
|
Loading…
Reference in New Issue
Block a user