patch-2.4.22 linux-2.4.22/drivers/isdn/hisax/config.c

Next file: linux-2.4.22/drivers/isdn/hisax/hisax_fcpcipnp.c
Previous file: linux-2.4.22/drivers/isdn/hisax/avma1_cs.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.21/drivers/isdn/hisax/config.c linux-2.4.22/drivers/isdn/hisax/config.c
@@ -1925,6 +1925,8 @@
 		break;
 	case PH_DEACTIVATE | INDICATION:
 		st->l1.l1l2(st, pr, NULL);
+		clear_bit(BC_FLG_BUSY, &bcs->Flag);
+		skb_queue_purge(&bcs->squeue);
 		bcs->hw.b_if = NULL;
 		break;
 	case PH_DATA | INDICATION:
@@ -2012,6 +2014,9 @@
 		else
 			set_bit(FLG_L1_PULL_REQ, &st->l1.Flags);
 		break;
+	case PH_DEACTIVATE | REQUEST:
+		test_and_clear_bit(BC_FLG_BUSY, &bcs->Flag);
+		skb_queue_purge(&bcs->squeue);
 	default:
 		B_L2L1(b_if, pr, arg);
 		break;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)