]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: wlan-ng: replace BUG_ON() into WARN_ON() on hfa384x_usbin_callback
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Mon, 7 Nov 2016 17:55:21 +0000 (18:55 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Nov 2016 12:25:32 +0000 (13:25 +0100)
commit1bca0df4ab8649ec875cbc1b2808367fa9587ad0
tree9f84165bf99221bedf852d8258c5772f3e64c3ac
parent3883cd56b536f4ed3c1abd24bfea798ffb7164e1
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 <sergio.paracuellos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/hfa384x_usb.c