From: Robert Love Date: Wed, 24 Mar 2010 10:02:04 +0000 (+0000) Subject: ixgbe: Don't allow user buffer count to exceed 256 X-Git-Tag: v2.6.34-rc3~9^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7551b75fe47fb6fb70f679935845e741c5e0855;p=pandora-kernel.git ixgbe: Don't allow user buffer count to exceed 256 If the user buffer count was 256 the shift would place a 1 in the offset region leading to errors. It also overwrites the uers buffer list. This patch makes sure that at most 256 user buffers are allowed for DDP and the buffer count is masked properly such that it doesn't overwrite the offset when shifting the bits. Signed-off-by: Robert Love Signed-off-by: Yi Zou Signed-off-by: Frank Zhang Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- Reading git-diff-tree failed