2001-11-13 21:34:05

by Till Immanuel Patzschke

[permalink] [raw]
Subject: [BUG/PATCH] iphase ATM driver (Oops - Div0)

diff -Naur linux-2.4.10/drivers/atm/iphase.c linux-2.4.10-new/drivers/atm/iphase.c
--- linux-2.4.10/drivers/atm/iphase.c Tue Sep 18 07:52:34 2001
+++ linux-2.4.10-new/drivers/atm/iphase.c Tue Nov 13 18:40:49 2001
@@ -1777,8 +1777,9 @@
memset((caddr_t)ia_vcc, 0, sizeof(*ia_vcc));
if (vcc->qos.txtp.max_sdu >
(iadev->tx_buf_sz - sizeof(struct cpcs_trailer))){
- printk("IA: SDU size over the configured SDU size %d\n",
- iadev->tx_buf_sz);
+ printk("IA: SDU size over (%d) the configured SDU size %d\n",
+ vcc->qos.txtp.max_sdu,iadev->tx_buf_sz);
+ INPH_IA_VCC(vcc) = NULL;
kfree(ia_vcc);
return -EINVAL;
}
@@ -2896,14 +2897,16 @@
dev_kfree_skb_any(skb);
return 0;
}
+#if 0
if ((u32)skb->data & 3) {
- printk("Misaligned SKB\n");
+ printk("Misaligned SKB (0x%p)\n",skb->data);
if (vcc->pop)
vcc->pop(vcc, skb);
else
dev_kfree_skb_any(skb);
return 0;
}
+#endif
/* Get a descriptor number from our free descriptor queue
We get the descr number from the TCQ now, since I am using
the TCQ as a free buffer queue. Initially TCQ will be


Attachments:
qq2 (1.34 kB)