projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcdb0a9
)
fm10k: demote BUG_ON() to WARN_ON() where appropriate
author
Bruce Allan
<
[email protected]
>
Tue, 22 Dec 2015 22:55:20 +0000
(14:55 -0800)
committer
Jeff Kirsher
<
[email protected]
>
Tue, 5 Apr 2016 19:44:36 +0000
(12:44 -0700)
We don't need to crash the kernel in this instance so just warn about the
condition and play on.
Signed-off-by: Bruce Allan <
[email protected]
>
Tested-by: Krishneil Singh <
[email protected]
>
Signed-off-by: Jeff Kirsher <
[email protected]
>
drivers/net/ethernet/intel/fm10k/fm10k_pci.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/intel/fm10k/fm10k_pci.c
b/drivers/net/ethernet/intel/fm10k/fm10k_pci.c
index c9324c79c8793c70580c56b76d190900c4aa2609..60a70e9730a0e2875401a967ced298c3b02536b8 100644
(file)
--- a/
drivers/net/ethernet/intel/fm10k/fm10k_pci.c
+++ b/
drivers/net/ethernet/intel/fm10k/fm10k_pci.c
@@
-99,7
+99,7
@@
void fm10k_service_event_schedule(struct fm10k_intfc *interface)
static void fm10k_service_event_complete(struct fm10k_intfc *interface)
{
-
BUG
_ON(!test_bit(__FM10K_SERVICE_SCHED, &interface->state));
+
WARN
_ON(!test_bit(__FM10K_SERVICE_SCHED, &interface->state));
/* flush memory to make sure state is correct before next watchog */
smp_mb__before_atomic();