i40e: add range check to i40e_aq_rc_to_posix
authorShannon Nelson <shannon.nelson@intel.com>
Thu, 13 Nov 2014 08:23:16 +0000 (08:23 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Tue, 9 Dec 2014 20:57:02 +0000 (12:57 -0800)
commit43477d2bbf2e0beabce94e6d99ebb5b3c648aaf4
treeaba1797168e46886e0b9aa665ed306994a3e2fb7
parent74d0d0ede7c96cbb4cb9b5fa755419e336ba6451
i40e: add range check to i40e_aq_rc_to_posix

Just to be sure, add a range check to avoid any possible
array index-out-of-bound issues.

CC: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Change-ID: I9323bee6732c2a47599816e1d6c6b3a1f8dcbf54
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Acked-by: Michal Kosiarz <michal.kosiarz@intel.com>
Tested-by: Jim Young <jamesx.m.young@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40e/i40e_adminq.h
drivers/net/ethernet/intel/i40evf/i40e_adminq.h