All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH TRIVIAL]: repost 2.4.19/drivers/atm/iphase.c
@ 2002-08-24 10:08 silvio
  2002-08-24 10:50 ` Francois Romieu
  2002-08-24 13:24 ` Bernd Eckenfels
  0 siblings, 2 replies; 3+ messages in thread
From: silvio @ 2002-08-24 10:08 UTC (permalink / raw)
  To: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 74 bytes --]

i must be on drugs.. forgot to attach patch! (of like 1 line!)

--
Silvio

[-- Attachment #2: patch.linux3 --]
[-- Type: text/plain, Size: 653 bytes --]

--- 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;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-24 13:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-24 10:08 [PATCH TRIVIAL]: repost 2.4.19/drivers/atm/iphase.c silvio
2002-08-24 10:50 ` Francois Romieu
2002-08-24 13:24 ` Bernd Eckenfels

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.