fix remaining skb_queue_purge issues (hopefully)
This commit is contained in:
parent
271bd73c86
commit
f52026d482
|
@ -892,8 +892,8 @@ closecard(int cardnr)
|
|||
csta->bcs->BC_Close(csta->bcs);
|
||||
}
|
||||
|
||||
discard_queue(&csta->rq);
|
||||
discard_queue(&csta->sq);
|
||||
skb_queue_purge(&csta->rq);
|
||||
skb_queue_purge(&csta->sq);
|
||||
if (csta->rcvbuf) {
|
||||
kfree(csta->rcvbuf);
|
||||
csta->rcvbuf = NULL;
|
||||
|
|
|
@ -175,6 +175,7 @@ typedef struct hfcusb_data {
|
|||
struct timer_list t3_timer; /* timer for activation/deactivation */
|
||||
} hfcusb_data;
|
||||
|
||||
#if 0
|
||||
static void
|
||||
usb_dump_urb(purb_t purb)
|
||||
{
|
||||
|
@ -196,6 +197,7 @@ usb_dump_urb(purb_t purb)
|
|||
printk("context :%p\n", purb->context);
|
||||
printk("complete :%p\n", purb->complete);
|
||||
}
|
||||
#endif
|
||||
|
||||
/*************************************************************************/
|
||||
/* bottom half handler for L1 activation/deactiavtaion + D-chan + E-chan */
|
||||
|
|
|
@ -344,8 +344,8 @@ close_hfcusb(struct BCState *bcs)
|
|||
{
|
||||
mode_hfcusb(bcs, 0, bcs->channel);
|
||||
if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) {
|
||||
discard_queue(&bcs->rqueue);
|
||||
discard_queue(&bcs->squeue);
|
||||
skb_queue_purge(&bcs->rqueue);
|
||||
skb_queue_purge(&bcs->squeue);
|
||||
if (bcs->tx_skb) {
|
||||
dev_kfree_skb_any(bcs->tx_skb);
|
||||
bcs->tx_skb = NULL;
|
||||
|
|
|
@ -716,8 +716,8 @@ BC_Close_st5481(struct BCState *bcs)
|
|||
kfree(hw->rcvbuf);
|
||||
hw->rcvbuf = NULL;
|
||||
}
|
||||
discard_queue(&bcs->rqueue);
|
||||
discard_queue(&bcs->squeue);
|
||||
skb_queue_purge(&bcs->rqueue);
|
||||
skb_queue_purge(&bcs->squeue);
|
||||
if (bcs->tx_skb) {
|
||||
dev_kfree_skb_any(bcs->tx_skb);
|
||||
bcs->tx_skb = NULL;
|
||||
|
@ -1957,8 +1957,8 @@ st5481_l1hw(struct PStack *st, int pr, void *arg)
|
|||
case (HW_DEACTIVATE | RESPONSE):
|
||||
DBG(8,"HW_DEACTIVATE_RESPONSE,state=%s",ST5481_IND_string(cs->dc.st5481.ph_state));
|
||||
//ph_command(cs, ST5481_CMD_DR);
|
||||
discard_queue(&cs->rq);
|
||||
discard_queue(&cs->sq);
|
||||
skb_queue_purge(&cs->rq);
|
||||
skb_queue_purge(&cs->sq);
|
||||
if (cs->tx_skb) {
|
||||
dev_kfree_skb_any(cs->tx_skb);
|
||||
cs->tx_skb = NULL;
|
||||
|
|
|
@ -67,3 +67,5 @@
|
|||
#undef COMPAT_HAS_pci_find_subsys
|
||||
|
||||
#define in_irq(dummy) (local_irq_count[smp_processor_id()] != 0)
|
||||
|
||||
#define PCI_DEVICE_ID_AVM_C2 0x1100
|
Loading…
Reference in New Issue