summaryrefslogtreecommitdiff
path: root/include/asm-um/thread_info.h
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2007-07-16 10:38:47 +0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 20:05:38 +0400
commit0a6d3a2a3813e7b25267366cfbf9a4a4698dd1c2 (patch)
tree98b0c20ad616258dae150a04307ce3a2ad90adf1 /include/asm-um/thread_info.h
parent7ff9057db7edeb210fd5c00314c52154922d8868 (diff)
downloadlinux-0a6d3a2a3813e7b25267366cfbf9a4a4698dd1c2.tar.xz
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 <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/asm-um/thread_info.h')
0 files changed, 0 insertions, 0 deletions