mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-09 12:24:07 -05:00
staging: wlan-ng: replace BUG_ON() into WARN_ON() on hfa384x_usbin_callback
This patch avoids using BUG_ON() from driver, and return from hfa384x_usbin_callback with WARN_ON() if skb was NULL or data in skb is different from expected one. Signed-off-by: Sergio Paracuellos <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
3883cd56b5
commit
1bca0df4ab
1 changed files with 4 additions and 1 deletions
|
|
@ -3057,7 +3057,10 @@ static void hfa384x_usbin_callback(struct urb *urb)
|
|||
goto exit;
|
||||
|
||||
skb = hw->rx_urb_skb;
|
||||
BUG_ON(!skb || (skb->data != urb->transfer_buffer));
|
||||
if (!skb || (skb->data != urb->transfer_buffer)) {
|
||||
WARN_ON(1);
|
||||
return;
|
||||
}
|
||||
|
||||
hw->rx_urb_skb = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue