]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.4.152/ieee802154-at86rf230-switch-from-bug_on-to-warn_on-on-problem.patch
Linux 4.9.124
[thirdparty/kernel/stable-queue.git] / releases / 4.4.152 / ieee802154-at86rf230-switch-from-bug_on-to-warn_on-on-problem.patch
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:13:53 +0200
4 Subject: ieee802154: at86rf230: switch from BUG_ON() to WARN_ON() on problem
5
6 From: Stefan Schmidt <stefan@datenfreihafen.org>
7
8 [ Upstream commit 20f330452ad8814f2289a589baf65e21270879a7 ]
9
10 The check is valid but it does not warrant to crash the kernel. A
11 WARN_ON() is good enough here.
12 Found by checkpatch.
13
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>
17 ---
18 drivers/net/ieee802154/at86rf230.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/net/ieee802154/at86rf230.c
22 +++ b/drivers/net/ieee802154/at86rf230.c
23 @@ -932,7 +932,7 @@ at86rf230_xmit(struct ieee802154_hw *hw,
24 static int
25 at86rf230_ed(struct ieee802154_hw *hw, u8 *level)
26 {
27 - BUG_ON(!level);
28 + WARN_ON(!level);
29 *level = 0xbe;
30 return 0;
31 }