patch-2.2.15 linux/drivers/isdn/pcbit/capi.c
Next file: linux/drivers/isdn/pcbit/drv.c
Previous file: linux/drivers/isdn/isdn_v110.h
Back to the patch index
Back to the overall index
- Lines: 16
- Date:
Fri Apr 21 12:46:12 2000
- Orig file:
v2.2.14/drivers/isdn/pcbit/capi.c
- Orig date:
Thu Apr 2 01:21:03 1998
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/drivers/isdn/pcbit/capi.c linux/drivers/isdn/pcbit/capi.c
@@ -304,7 +304,14 @@
data_len = skb->len;
- skb_push(skb, 10);
+ if(skb_headroom(skb) < 10)
+ {
+ printk(KERN_CRIT "No headspace (%u) on headroom %p for capi header\n", skb_headroom(skb), skb);
+ }
+ else
+ {
+ skb_push(skb, 10);
+ }
*((u16 *) (skb->data)) = chan->callref;
skb->data[2] = chan->layer2link;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)