diff --git a/net/core/skbuff.c b/net/core/skbuff.c index f0a9ef1aeaa2..6efdfba08c74 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -6834,9 +6834,9 @@ void skb_attempt_defer_free(struct sk_buff *skb) unsigned int defer_max; bool kick; - if (WARN_ON_ONCE(cpu >= nr_cpu_ids) || - !cpu_online(cpu) || - cpu == raw_smp_processor_id()) { + if (cpu == raw_smp_processor_id() || + WARN_ON_ONCE(cpu >= nr_cpu_ids) || + !cpu_online(cpu)) { nodefer: __kfree_skb(skb); return; }