X25: Move interrupt flag to bitfield
[deliverable/linux.git] / net / x25 / x25_out.c
index 52351a26b6fc4b713f034e9b2d7a1990247ca419..d00649fb251d3df8bddafad81508e96d74821eb1 100644 (file)
@@ -148,8 +148,9 @@ void x25_kick(struct sock *sk)
        /*
         *      Transmit interrupt data.
         */
-       if (!x25->intflag && skb_peek(&x25->interrupt_out_queue) != NULL) {
-               x25->intflag = 1;
+       if (skb_peek(&x25->interrupt_out_queue) != NULL &&
+               !test_and_set_bit(X25_INTERRUPT_FLAG, &x25->flags)) {
+
                skb = skb_dequeue(&x25->interrupt_out_queue);
                x25_transmit_link(skb, x25->neighbour);
        }
This page took 0.024408 seconds and 5 git commands to generate.