From: Tejun Heo Date: Tue, 27 Nov 2007 08:30:39 +0000 (+0100) Subject: scatterlist: add more safeguards X-Git-Tag: v2.6.24-rc4~87^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=645a8d94629fd812a220d54876339a1ddafd9bc2;p=pandora-kernel.git scatterlist: add more safeguards Add more safeguards to protect against misinterpreting a chain entry as a normal scatterlist and vice-versa. * Make sure the entry isn't a chain when assigning and reading a normal sg. * Clear offset and length when chaining. Signed-off-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed