From: Jens Axboe Date: Wed, 17 Oct 2007 11:02:33 +0000 (+0200) Subject: [BLOCK] Clear sg entry before filling in blk_rq_map_sg() X-Git-Tag: v2.6.24-rc1~490^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60573b874b03d22678614ca1e73f6b15c1b53b40;p=pandora-kernel.git [BLOCK] Clear sg entry before filling in blk_rq_map_sg() The memset() of the sg entry was originally removed, because it could overwrite a chain pointer. But it's quite OK to memset() it when we know it's a valid entry, since it can't contain a chain pointer. Signed-off-by: Jens Axboe --- Reading git-diff-tree failed