remaining skb_queue_purge issues

This commit is contained in:
Kai Germaschewski 2001-06-17 08:28:31 +00:00
parent f52026d482
commit 6d2ddd8024
2 changed files with 2 additions and 3 deletions

View File

@ -1379,7 +1379,6 @@ int QuickHex(char *txt, u_char * p, int cnt);
void LogFrame(struct IsdnCardState *cs, u_char * p, int size);
void dlogframe(struct IsdnCardState *cs, struct sk_buff *skb, int dir);
void iecpy(u_char * dest, u_char * iestart, int ieoffset);
int discard_queue(struct sk_buff_head *q);
#ifdef ISDN_CHIP_ISAC
void setstack_isac(struct PStack *st, struct IsdnCardState *cs);
#endif /* ISDN_CHIP_ISAC */

View File

@ -2030,7 +2030,7 @@ isdn_free_channel(int di, int ch, int usage)
dev->v110[i] = NULL;
// 20.10.99 JIM, try to reinitialize v110 !
isdn_info_update();
isdn_free_queue(&dev->drv[di]->rpqueue[ch]);
skb_queue_purge(&dev->drv[di]->rpqueue[ch]);
}
restore_flags(flags);
}
@ -2193,7 +2193,7 @@ isdn_add_channels(driver *d, int drvidx, int n, int adding)
if ((adding) && (d->rpqueue)) {
for (j = 0; j < d->channels; j++)
isdn_free_queue(&d->rpqueue[j]);
skb_queue_purge(&d->rpqueue[j]);
kfree(d->rpqueue);
}
if (!(d->rpqueue =