From: Felipe W Damasio <felipewd@terra.com.br>
To: James.Bottomley@HansenPartnership.com
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
linux-scsi@vger.kernel.org
Subject: [PATCH] Memory leak in NCR_Q720 found by checker
Date: Tue, 23 Sep 2003 15:59:10 -0300 [thread overview]
Message-ID: <3F7097FE.2080105@terra.com.br> (raw)
[-- Attachment #1: Type: text/plain, Size: 140 bytes --]
Hi James,
Patch against 2.6-test5 which frees a struct NCR_Q720_private before
returning.
Please consider applying.
Cheers,
Felipe
[-- Attachment #2: NCR_Q720-leak.patch --]
[-- Type: text/plain, Size: 405 bytes --]
--- linux-2.6.0-test5/drivers/scsi/NCR_Q720.c.orig 2003-09-23 15:36:47.000000000 -0300
+++ linux-2.6.0-test5/drivers/scsi/NCR_Q720.c 2003-09-23 15:38:28.000000000 -0300
@@ -179,6 +179,7 @@
i = inb(io_base) | (inb(io_base+1)<<8);
if(i != NCR_Q720_MCA_ID) {
printk(KERN_ERR "NCR_Q720, adapter failed to I/O map registers correctly at 0x%x(0x%x)\n", io_base, i);
+ kfree(p);
return -ENODEV;
}
reply other threads:[~2003-09-23 19:43 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=3F7097FE.2080105@terra.com.br \
--to=felipewd@terra.com.br \
--cc=James.Bottomley@HansenPartnership.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@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