aboutsummaryrefslogtreecommitdiffstats
path: root/net/x25/x25_out.c
diff options
context:
space:
mode:
authorandrew hendry <andrew.hendry@gmail.com>2010-05-16 23:00:02 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-17 17:39:27 -0700
commitb7792e34cba641c49cd436d42fbfd2a632ff39d3 (patch)
treef880770915e06678b287f1c6c7d16702677c6aef /net/x25/x25_out.c
parentX25: Move qbit flag to bitfield (diff)
downloadlinux-dev-b7792e34cba641c49cd436d42fbfd2a632ff39d3.tar.xz
linux-dev-b7792e34cba641c49cd436d42fbfd2a632ff39d3.zip
X25: Move interrupt flag to bitfield
Moves the x25 interrupt flag from char into bitfield. Signed-off-by: Andrew Hendry <andrew.hendry@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25/x25_out.c')
-rw-r--r--net/x25/x25_out.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/net/x25/x25_out.c b/net/x25/x25_out.c
index 52351a26b6fc..d00649fb251d 100644
--- a/net/x25/x25_out.c
+++ b/net/x25/x25_out.c
@@ -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);
}