Skip to content

Commit 838e610

Browse files
bwallanJeff Kirsher
authored andcommitted
fm10k: demote BUG_ON() to WARN_ON() where appropriate
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]>
1 parent fcdb0a9 commit 838e610

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/fm10k/fm10k_pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void fm10k_service_event_schedule(struct fm10k_intfc *interface)
9999

100100
static void fm10k_service_event_complete(struct fm10k_intfc *interface)
101101
{
102-
BUG_ON(!test_bit(__FM10K_SERVICE_SCHED, &interface->state));
102+
WARN_ON(!test_bit(__FM10K_SERVICE_SCHED, &interface->state));
103103

104104
/* flush memory to make sure state is correct before next watchog */
105105
smp_mb__before_atomic();

0 commit comments

Comments
 (0)