Re: tun.c patch to fix "smp_processor_id() in preemptible code"

From: David S. Miller
Date: Tue Oct 19 2004 - 21:08:54 EST


On Tue, 19 Oct 2004 18:51:28 -0400
Lee Revell <rlrevell@xxxxxxxxxxx> wrote:

> OK, thanks for clarifying. The correct patch is therefore:
...
> static inline int netif_rx_ni(struct sk_buff *skb)
> {
> + preempt_disable();
> int err = netif_rx(skb);

You need to put statements after local function variable
declarations.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/