summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-01-15 06:43:39 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2014-03-19 17:17:22 -0700
commitc243e96335c56e56dcf6a00593104554fb06b689 (patch)
treeb1e4bdf0839e365490820b0090a9d793edbc4c06 /drivers/staging
parentff40dd5d44707e2964c1b24196a86bf1938ce32b (diff)
downloadlinux-c243e96335c56e56dcf6a00593104554fb06b689.tar.bz2
i40e: potential array underflow in i40e_vc_process_vf_msg()
If "vf_id" is smaller than hw->func_caps.vf_base_id then it leads to an array underflow of the pf->vf[] array. This is unlikely to happen unless the hardware is bad, but it's a small change and it silences a static checker warning. Fixes: 7efa84b7abc1 ('i40e: support VFs on PFs other than 0') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Tested-by: Sibai Li <sibai.li@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/staging')
0 files changed, 0 insertions, 0 deletions