]> git.baikalelectronics.ru Git - kernel.git/commit
i40e/i40evf: fix a potential type compare issue
authorShannon Nelson <shannon.nelson@intel.com>
Wed, 26 Aug 2015 19:14:11 +0000 (15:14 -0400)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Wed, 7 Oct 2015 20:38:11 +0000 (13:38 -0700)
commite5d697542791574a44154eabd819281289a3774b
tree2a3147419146e937e89ff9797e3d1c36eae63444
parent5fc3e92353bc38ba079fd54f4e7f57cdb1ac14b1
i40e/i40evf: fix a potential type compare issue

Rework an if expression to assure there is no type compare problem between
a size and a possible negative number.

Change-ID: I4921fcc96abfcf69490efce020a9e4007f251c99
Reported-by: Helin Zhang <helin.zhang@intel.com>
Signed-off-by: Shannon Nelson <shannon.nelson@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@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