git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
drivers
/
isdn
/
icn
/
icn.c
diff --git
a/drivers/isdn/icn/icn.c
b/drivers/isdn/icn/icn.c
index
9fc0c1e
..
6649f8b
100644
(file)
--- a/
drivers/isdn/icn/icn.c
+++ b/
drivers/isdn/icn/icn.c
@@
-304,12
+304,12
@@
icn_pollbchan_send(int channel, icn_card * card)
isdn_ctrl cmd;
if (!(card->sndcount[channel] || card->xskb[channel] ||
isdn_ctrl cmd;
if (!(card->sndcount[channel] || card->xskb[channel] ||
-
skb_queue_len
(&card->spqueue[channel])))
+
!skb_queue_empty
(&card->spqueue[channel])))
return;
if (icn_trymaplock_channel(card, mch)) {
while (sbfree &&
(card->sndcount[channel] ||
return;
if (icn_trymaplock_channel(card, mch)) {
while (sbfree &&
(card->sndcount[channel] ||
-
skb_queue_len
(&card->spqueue[channel]) ||
+
!skb_queue_empty
(&card->spqueue[channel]) ||
card->xskb[channel])) {
spin_lock_irqsave(&card->lock, flags);
if (card->xmit_lock[channel]) {
card->xskb[channel])) {
spin_lock_irqsave(&card->lock, flags);
if (card->xmit_lock[channel]) {
@@
-947,8
+947,7
@@
icn_loadproto(u_char __user * buffer, icn_card * card)
icn_maprelease_channel(card, 0);
return -EIO;
}
icn_maprelease_channel(card, 0);
return -EIO;
}
- set_current_state(TASK_INTERRUPTIBLE);
- schedule_timeout(10);
+ schedule_timeout_interruptible(10);
}
}
writeb(0x20, &sbuf_n);
}
}
writeb(0x20, &sbuf_n);
@@
-1650,7
+1649,7
@@
static void __exit icn_exit(void)
{
isdn_ctrl cmd;
icn_card *card = cards;
{
isdn_ctrl cmd;
icn_card *card = cards;
- icn_card *last;
+ icn_card *last
, *tmpcard
;
int i;
unsigned long flags;
int i;
unsigned long flags;
@@
-1670,8
+1669,9
@@
static void __exit icn_exit(void)
for (i = 0; i < ICN_BCH; i++)
icn_free_queue(card, i);
}
for (i = 0; i < ICN_BCH; i++)
icn_free_queue(card, i);
}
- card = card->next;
+
tmp
card = card->next;
spin_unlock_irqrestore(&card->lock, flags);
spin_unlock_irqrestore(&card->lock, flags);
+ card = tmpcard;
}
card = cards;
cards = NULL;
}
card = cards;
cards = NULL;