From: David Dillow Date: Thu, 17 Apr 2008 04:01:12 +0000 (-0700) Subject: IB/srp: Enforce protocol limit on srp_sg_tablesize X-Git-Tag: v2.6.26-rc1~1156^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e89a1946cfd906d12eff437d2a76b3aa7f5e731;p=pandora-kernel.git IB/srp: Enforce protocol limit on srp_sg_tablesize The current SRP initiator will allow unlimited s/g entries in the indirect descriptors lists, but the entry count field in the SRP_CMD request is 8 bits, so setting srp_sg_tablesize too large will open the possibility of wrapping the count and generating invalid requests. Clamp srp_sg_tablesize to the protocol limits to prevent surprises. Reported by Martin W. Schlining III . Signed-off-by: David Dillow Signed-off-by: Roland Dreier --- Reading git-diff-tree failed