ixgbe: Bounds checking for set_rar, clear_rar, set_vmdq, clear_vmdq
authorEmil Tantilov <emil.s.tantilov@intel.com>
Thu, 17 Feb 2011 11:34:58 +0000 (11:34 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 3 Mar 2011 11:11:39 +0000 (03:11 -0800)
commitc700f4e6f55c42c9aeacf365bd178f97625e00df
treeded1be112befab38829f5cf23f53655098b60b51
parent26d6899ba775ed056bd73107e3f4427ff9247f75
ixgbe: Bounds checking for set_rar, clear_rar, set_vmdq, clear_vmdq

This change makes it so that out of bounds requests to these calls will
now return IXGBE_ERR_INVALID_ARGUMENT instead of returning 0.

Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com>
Tested-by: Stephen Ko <stephen.s.ko@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ixgbe/ixgbe_82598.c
drivers/net/ixgbe/ixgbe_common.c
drivers/net/ixgbe/ixgbe_type.h