Commit ff517ce2 authored by David S. Miller's avatar David S. Miller

[NET]: Need to disable preempt in softirq check of netif_rx_ni.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 21d91a95
...@@ -695,8 +695,12 @@ extern int netdev_nit; ...@@ -695,8 +695,12 @@ extern int netdev_nit;
static inline int netif_rx_ni(struct sk_buff *skb) static inline int netif_rx_ni(struct sk_buff *skb)
{ {
int err = netif_rx(skb); int err = netif_rx(skb);
preempt_disable();
if (softirq_pending(smp_processor_id())) if (softirq_pending(smp_processor_id()))
do_softirq(); do_softirq();
preempt_enable();
return err; return err;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment