Skip to content

Commit 0a06ad8

Browse files
lwfingerlinvjw
authored andcommittedJan 28, 2013
rtlwifi: Fix the usage of the wrong variable in usb.c
In routine _rtl_rx_pre_process(), skb_dequeue() is called to get an skb; however, the wrong variable name is used in subsequent calls. Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Cc: Guenter Roeck <linux@roeck-us.net> Cc: Stable <stable@vger.kernel.org> Signed-off-by: John W. Linville <linville@tuxdriver.com>
1 parent 6b112de commit 0a06ad8

File tree

1 file changed

+2
-2
lines changed
  • drivers/net/wireless/rtlwifi

1 file changed

+2
-2
lines changed
 

‎drivers/net/wireless/rtlwifi/usb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -542,8 +542,8 @@ static void _rtl_rx_pre_process(struct ieee80211_hw *hw, struct sk_buff *skb)
542542
WARN_ON(skb_queue_empty(&rx_queue));
543543
while (!skb_queue_empty(&rx_queue)) {
544544
_skb = skb_dequeue(&rx_queue);
545-
_rtl_usb_rx_process_agg(hw, skb);
546-
ieee80211_rx_irqsafe(hw, skb);
545+
_rtl_usb_rx_process_agg(hw, _skb);
546+
ieee80211_rx_irqsafe(hw, _skb);
547547
}
548548
}
549549

0 commit comments

Comments
 (0)