1 From foo@baz Wed Aug 22 10:28:26 CEST 2018
2 From: Stefan Schmidt <stefan@datenfreihafen.org>
3 Date: Fri, 22 Sep 2017 14:14:05 +0200
4 Subject: ieee802154: fakelb: switch from BUG_ON() to WARN_ON() on problem
6 From: Stefan Schmidt <stefan@datenfreihafen.org>
8 [ Upstream commit 8f2fbc6c60ff213369e06a73610fc882a42fdf20 ]
10 The check is valid but it does not warrant to crash the kernel. A
11 WARN_ON() is good enough here.
14 Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
15 Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18 drivers/net/ieee802154/fakelb.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
21 --- a/drivers/net/ieee802154/fakelb.c
22 +++ b/drivers/net/ieee802154/fakelb.c
23 @@ -49,7 +49,7 @@ struct fakelb_phy {
25 static int fakelb_hw_ed(struct ieee802154_hw *hw, u8 *level)