From: Ralph Campbell Date: Tue, 18 Jul 2006 01:21:24 +0000 (-0700) Subject: IB/ipath: ipath_skip_sge() can break if num_sge > 1 X-Git-Tag: v2.6.18-rc3~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16c59419a09f0140a07a1828d6a45656265e07c7;p=pandora-kernel.git IB/ipath: ipath_skip_sge() can break if num_sge > 1 ipath_skip_sge() doesn't exactly duplicate the side effects of ipath_copy_sge() if num_sge > 1 since it doesn't decrement ss->num_sge. This could result in the sg_list being accessed out of bounds. Since ipath_skip_sge() is almost always called with num_sge == 1, the original "optimization" is almost never used. Signed-off-by: Ralph Campbell Signed-off-by: Roland Dreier --- Reading git-diff-tree failed