i must be on drugs.. forgot to attach patch! (of like 1 line!)
-- Silvio--Q68bSM7Ycu6FN28Q Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="patch.linux3"
--- linux-2.4.19/drivers/atm/iphase.c Mon Feb 25 11:37:57 2002 +++ linux-2.4.19-dev/drivers/atm/iphase.c Sat Aug 24 02:44:15 2002 @@ -1990,6 +1990,7 @@ printk(KERN_ERR DEV_LABEL " couldn't get mem\n"); return -EAGAIN; } +/* XXX: memory leak on failure */ for (i= 0; i< iadev->num_tx_desc; i++) { @@ -2002,6 +2003,7 @@ } iadev->desc_tbl = kmalloc(iadev->num_tx_desc * sizeof(struct desc_tbl_t), GFP_KERNEL); + if (iadev->desc_tbl == NULL) return -EAGAIN; /* Communication Queues base address */ i = TX_COMP_Q * iadev->memSize;
--Q68bSM7Ycu6FN28Q-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/