Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/intel/ice
Jacob Keller 35b4f4372f ice: fix ice_is_tc_ena
ice_is_tc_ena is used to check whether a given traffic class is
enabled. Because there are only 8 traffic classes, the function took
a u8 bitmap. This causes problems because it is cast to an unsigned
long causing a static analysis warning regarding Out-of-bounds read.

Fix this by simply updating ice_is_tc_ena to take an unsigned long.
Passing a u8 to this function should implicitly convert the value.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2019-08-26 23:27:10 -07:00
..
2019-05-30 10:57:55 -07:00
2018-03-26 09:59:08 -07:00
2019-01-15 12:38:44 -08:00
2019-08-26 23:27:10 -07:00
2019-08-23 10:34:27 -07:00