: repost 2.4.19/drivers/atm/iphase.c
PATCH 1/1 : repost 2.4.19/drivers/atm/iphase.c
i must be on drugs.. forgot to attach patch! (of like 1 line!)
--
Silvio
drivers/atm/iphase.c +2 -0
@@ -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;
[email protected] <[email protected]> :
Quoted 4 lines
i must be on drugs.. forgot to attach patch! (of like 1 line!)
--
Silvio
I have patches for iphase driver at
http://www.cogenit.fr/linux/patches/2.5.25/. As there are no more holidays scheduled, they'll be tested shortly.
Signature · 1 line
Ueimor
Quoted 1 line · In article <[email protected]> you wrote:
+ if (
iadev->desc_tbl== NULL) return-EAGAIN;
is there a pattern in your patches? EAGAIN or ENOMEM?
Greetings
Bernd