mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: silvio@qualys.com
To: linux-kernel@vger.kernel.org
Subject: [PATCH TRIVIAL]: repost 2.4.19/drivers/atm/iphase.c
Date: Sat, 24 Aug 2002 03:08:55 -0700	[thread overview]
Message-ID: <20020824030855.A2399@hamsec.aurora.sfo.interquest.net> (raw)

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

             reply	other threads:[~2002-08-24  9:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-24 10:08 silvio [this message]
2002-08-24 10:50 ` Francois Romieu
2002-08-24 13:24 ` Bernd Eckenfels

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020824030855.A2399@hamsec.aurora.sfo.interquest.net \
    --to=silvio@qualys.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®