mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 03:42:52 +00:00
rtl8187: Fix error returns
There are two places in the rtl8187 code where a routine was returning zero (OK) when it should have been returning an error. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Acked-by: Hin-Tak Leung <htl10@users.sourceforge.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
23827926eb
commit
da9f57eade
@ -213,7 +213,7 @@ static int rtl8187_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
|
||||
urb = usb_alloc_urb(0, GFP_ATOMIC);
|
||||
if (!urb) {
|
||||
kfree_skb(skb);
|
||||
return 0;
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
flags = skb->len;
|
||||
@ -281,7 +281,7 @@ static int rtl8187_tx(struct ieee80211_hw *dev, struct sk_buff *skb)
|
||||
}
|
||||
usb_free_urb(urb);
|
||||
|
||||
return 0;
|
||||
return rc;
|
||||
}
|
||||
|
||||
static void rtl8187_rx_cb(struct urb *urb)
|
||||
|
Loading…
Reference in New Issue
Block a user