From: Jeff Dike Date: Mon, 16 Jul 2007 06:38:47 +0000 (-0700) Subject: uml: fix request->sector update X-Git-Tag: v2.6.23-rc1~989 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a6d3a2a3813e7b25267366cfbf9a4a4698dd1c2;p=pandora-kernel.git uml: fix request->sector update It is theoretically possible for a request to finish and be freed between writing it to the I/O thread and updating the sector count. In this case, the update will dereference a freed pointer. To avoid this, I delay the update until processing the next sg segment, when the request pointer is known to be good. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed