patch-2.4.10 linux/drivers/isdn/hisax/callc.c
Next file: linux/drivers/isdn/hisax/config.c
Previous file: linux/drivers/isdn/hisax/Makefile
Back to the patch index
Back to the overall index
- Lines: 71
- Date:
Sun Sep 9 10:45:43 2001
- Orig file:
v2.4.9/linux/drivers/isdn/hisax/callc.c
- Orig date:
Tue Jul 3 17:08:19 2001
diff -u --recursive --new-file v2.4.9/linux/drivers/isdn/hisax/callc.c linux/drivers/isdn/hisax/callc.c
@@ -1,4 +1,4 @@
-/* $Id: callc.c,v 2.51.6.4 2001/06/09 15:14:17 kai Exp $
+/* $Id: callc.c,v 2.51.6.5 2001/08/23 19:44:23 kai Exp $
*
* Author Karsten Keil (keil@isdn4linux.de)
* based on the teles driver from Jan den Ouden
@@ -20,12 +20,12 @@
#define MOD_USE_COUNT ( GET_USE_COUNT (&__this_module))
#endif /* MODULE */
-const char *lli_revision = "$Revision: 2.51.6.4 $";
+const char *lli_revision = "$Revision: 2.51.6.5 $";
extern struct IsdnCard cards[];
extern int nrcards;
-extern void HiSax_mod_dec_use_count(void);
-extern void HiSax_mod_inc_use_count(void);
+extern void HiSax_mod_dec_use_count(struct IsdnCardState *cs);
+extern void HiSax_mod_inc_use_count(struct IsdnCardState *cs);
static int init_b_st(struct Channel *chanp, int incoming);
static void release_b_st(struct Channel *chanp);
@@ -1584,7 +1584,7 @@
}
break;
case (ISDN_CMD_LOCK):
- HiSax_mod_inc_use_count();
+ HiSax_mod_inc_use_count(csta);
#ifdef MODULE
if (csta->channel[0].debug & 0x400)
HiSax_putstatus(csta, " LOCK ", "modcnt %lx",
@@ -1592,7 +1592,7 @@
#endif /* MODULE */
break;
case (ISDN_CMD_UNLOCK):
- HiSax_mod_dec_use_count();
+ HiSax_mod_dec_use_count(csta);
#ifdef MODULE
if (csta->channel[0].debug & 0x400)
HiSax_putstatus(csta, " UNLOCK ", "modcnt %lx",
@@ -1624,11 +1624,11 @@
break;
case (3):
for (i = 0; i < *(unsigned int *) ic->parm.num; i++)
- HiSax_mod_dec_use_count();
+ HiSax_mod_dec_use_count(NULL);
break;
case (4):
for (i = 0; i < *(unsigned int *) ic->parm.num; i++)
- HiSax_mod_inc_use_count();
+ HiSax_mod_inc_use_count(NULL);
break;
case (5): /* set card in leased mode */
num = *(unsigned int *) ic->parm.num;
@@ -1698,7 +1698,7 @@
#ifdef MODULE
case (55):
MOD_USE_COUNT = 0;
- HiSax_mod_inc_use_count();
+ HiSax_mod_inc_use_count(NULL);
break;
#endif /* MODULE */
case (11):
@@ -1810,6 +1810,7 @@
cli();
nskb = skb_clone(skb, GFP_ATOMIC);
if (nskb) {
+ nskb->truesize = nskb->len;
if (!ack)
nskb->pkt_type = PACKET_NOACK;
if (chanp->l2_active_protocol == ISDN_PROTO_L2_X75I)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)