diff options
Diffstat (limited to 'drivers/isdn/hisax/avm_pci.c')
-rw-r--r-- | drivers/isdn/hisax/avm_pci.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/isdn/hisax/avm_pci.c b/drivers/isdn/hisax/avm_pci.c index 625799ab0d14..5d8ee7368f7b 100644 --- a/drivers/isdn/hisax/avm_pci.c +++ b/drivers/isdn/hisax/avm_pci.c | |||
@@ -552,14 +552,10 @@ close_hdlcstate(struct BCState *bcs) | |||
552 | { | 552 | { |
553 | modehdlc(bcs, 0, 0); | 553 | modehdlc(bcs, 0, 0); |
554 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { | 554 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { |
555 | if (bcs->hw.hdlc.rcvbuf) { | 555 | kfree(bcs->hw.hdlc.rcvbuf); |
556 | kfree(bcs->hw.hdlc.rcvbuf); | 556 | bcs->hw.hdlc.rcvbuf = NULL; |
557 | bcs->hw.hdlc.rcvbuf = NULL; | 557 | kfree(bcs->blog); |
558 | } | 558 | bcs->blog = NULL; |
559 | if (bcs->blog) { | ||
560 | kfree(bcs->blog); | ||
561 | bcs->blog = NULL; | ||
562 | } | ||
563 | skb_queue_purge(&bcs->rqueue); | 559 | skb_queue_purge(&bcs->rqueue); |
564 | skb_queue_purge(&bcs->squeue); | 560 | skb_queue_purge(&bcs->squeue); |
565 | if (bcs->tx_skb) { | 561 | if (bcs->tx_skb) { |