]> git.baikalelectronics.ru Git - kernel.git/commit
ixgbe: Don't allow user buffer count to exceed 256
authorRobert Love <robert.w.love@intel.com>
Wed, 24 Mar 2010 10:02:04 +0000 (10:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2010 18:56:03 +0000 (11:56 -0700)
commitc96db4180007d0d47e20fa8f5a50697f5b2a2115
tree935b004c4fcda47771a68255dec2f8feb2e154b1
parentb41061111852251618995eb79c6a114e1bdcff76
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 <robert.w.love@intel.com>
Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Frank Zhang <frank_1.zhang@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_fcoe.c