From: Tejun Heo Date: Wed, 15 Apr 2009 13:10:23 +0000 (+0900) Subject: scatterlist: make sure sg_miter_next() doesn't return 0 sized mappings X-Git-Tag: v2.6.30-rc4~65^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23c560a99d78bddf5c251bfa97bce19e4da4b3f3;p=pandora-kernel.git scatterlist: make sure sg_miter_next() doesn't return 0 sized mappings Impact: fix not-so-critical but annoying bug sg_miter_next() returns 0 sized mapping if there is an zero sized sg entry in the list or at the end of each iteration. As the users always check the ->length field, this bug shouldn't be critical other than causing unnecessary iteration. Fix it. Signed-off-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed