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

[NET]: In netif_rx_ni, put netif_rx call inside preempt-disable.

Noticed by Herbert Xu.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 39e08058
......@@ -1589,14 +1589,15 @@ int netif_rx(struct sk_buff *skb)
int netif_rx_ni(struct sk_buff *skb)
{
int err = netif_rx(skb);
int err;
preempt_disable();
if (softirq_pending(smp_processor_id()))
do_softirq();
preempt_enable();
preempt_disable();
err = netif_rx(skb);
if (softirq_pending(smp_processor_id()))
do_softirq();
preempt_enable();
return err;
return err;
}
EXPORT_SYMBOL(netif_rx_ni);
......
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