[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 11 Dec 2006 23:34:34 -0600
From: Robert Hancock <hancockr@...w.ca>
To: Jeff Garzik <jeff@...zik.org>
Cc: linux-kernel <linux-kernel@...r.kernel.org>,
linux-ide@...r.kernel.org, Andrew Morton <akpm@...l.org>
Subject: [PATCH -mm] sata_nv: fix kfree ordering in remove
Jeff Garzik wrote:
> It is unwise to free the struct before the ports are even detached.
Right, theoretically something bad could happen here (though not
likely). Here's a fix. Sorry for attaching with something so trivial,
but Thunderbird isn't very cooperative..
---
The suspend/resume change for sata_nv introduced a potential bug where
the hpriv structure could be used after it was freed in nv_remove_one.
Fix that.
Signed-off-by: Robert Hancock <hancockr@...w.ca>
---
Robert Hancock Saskatoon, SK, Canada
To email, remove "nospam" from hancockr@...pamshaw.ca
Home Page: http://www.roberthancock.com/
View attachment "sata_nv-fix-kfree-order-on-remove.patch" of type "text/plain" (467 bytes)
Powered by blists - more mailing lists