From: Jeff Garzik <jgarzik@pobox.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [BK PATCHES] libata fixes
Date: Fri, 05 Dec 2003 13:47:19 -0500 [thread overview]
Message-ID: <3FD0D2B7.2050403@pobox.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0312051041000.9125@home.osdl.org>
[-- Attachment #1: Type: text/plain, Size: 969 bytes --]
Linus Torvalds wrote:
>
> On Fri, 5 Dec 2003, Jeff Garzik wrote:
>
>>Linus, please do a
>>
>> bk pull bk://gkernel.bkbits.net/libata-2.5
>>
>>This will update the following files:
>>
>> drivers/scsi/libata-core.c | 17 ++---
>> drivers/scsi/sata_promise.c | 128 +++++++++++++++++++++++++-------------------
>
>
> Right now, I'm accepting one-liners that I think are "obvious" and also
> "very important" (ie fixes for oopses that anybody can trigger, rather
> than for example updates to one particular driver). So it sounds like I
> might accept _one_ of these:
>
>
>><jgarzik@redhat.com> (03/12/05 1.1498)
>> [libata] fix use-after-free
>>
>> Fixes oops some were seeing on module unload.
>>
>> Caught by Jon Burgess.
>
>
> If this is basically an obvious one-liner ("move a kfree")?
>
> Andrew is still off, and he can make a decision independently, but right
> now I'm not going to apply anything bigger.
Yep, split out and attached...
Jeff
[-- Attachment #2: patch --]
[-- Type: text/plain, Size: 1081 bytes --]
# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.1497 -> 1.1498
# drivers/scsi/libata-core.c 1.8 -> 1.9
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/12/05 jgarzik@redhat.com 1.1498
# [libata] fix use-after-free
#
# Fixes oops some were seeing on module unload.
#
# Caught by Jon Burgess.
# --------------------------------------------
#
diff -Nru a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
--- a/drivers/scsi/libata-core.c Fri Dec 5 13:46:54 2003
+++ b/drivers/scsi/libata-core.c Fri Dec 5 13:46:54 2003
@@ -3224,8 +3224,6 @@
scsi_host_put(ap->host); /* FIXME: check return val */
}
- kfree(host_set);
-
pci_release_regions(pdev);
for (i = 0; i < host_set->n_ports; i++) {
@@ -3242,6 +3240,7 @@
}
}
+ kfree(host_set);
pci_disable_device(pdev);
pci_set_drvdata(pdev, NULL);
}
next prev parent reply other threads:[~2003-12-05 18:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-05 18:16 [BK PATCHES] libata fixes Jeff Garzik
2003-12-05 18:44 ` Linus Torvalds
2003-12-05 18:47 ` Jeff Garzik [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-11-08 17:26 Jeff Garzik
2003-11-08 20:16 ` Sergey Vlasov
2003-11-08 20:23 ` Jeff Garzik
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=3FD0D2B7.2050403@pobox.com \
--to=jgarzik@pobox.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.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