diff options
Diffstat (limited to 'drivers/isdn/hisax/ipacx.c')
-rw-r--r-- | drivers/isdn/hisax/ipacx.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/drivers/isdn/hisax/ipacx.c b/drivers/isdn/hisax/ipacx.c index efba2f448017..2e9afae1254a 100644 --- a/drivers/isdn/hisax/ipacx.c +++ b/drivers/isdn/hisax/ipacx.c | |||
@@ -762,14 +762,10 @@ bch_close_state(struct BCState *bcs) | |||
762 | { | 762 | { |
763 | bch_mode(bcs, 0, bcs->channel); | 763 | bch_mode(bcs, 0, bcs->channel); |
764 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { | 764 | if (test_and_clear_bit(BC_FLG_INIT, &bcs->Flag)) { |
765 | if (bcs->hw.hscx.rcvbuf) { | 765 | kfree(bcs->hw.hscx.rcvbuf); |
766 | kfree(bcs->hw.hscx.rcvbuf); | 766 | bcs->hw.hscx.rcvbuf = NULL; |
767 | bcs->hw.hscx.rcvbuf = NULL; | 767 | kfree(bcs->blog); |
768 | } | 768 | bcs->blog = NULL; |
769 | if (bcs->blog) { | ||
770 | kfree(bcs->blog); | ||
771 | bcs->blog = NULL; | ||
772 | } | ||
773 | skb_queue_purge(&bcs->rqueue); | 769 | skb_queue_purge(&bcs->rqueue); |
774 | skb_queue_purge(&bcs->squeue); | 770 | skb_queue_purge(&bcs->squeue); |
775 | if (bcs->tx_skb) { | 771 | if (bcs->tx_skb) { |