diff options
| author | Larry Finger <[email protected]> | 2017-09-23 19:36:04 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-10-18 15:33:15 +0200 |
| commit | 43d15c2013130a9fa230c2f5203aca818ae0bb86 (patch) | |
| tree | 5a09eafca0654b8751b84d520e3bdadf54a90661 /tools/perf/scripts/python | |
| parent | 78cd0ddc67775df4e6a2c9b4da8cb26b19d61f8d (diff) | |
staging: rtl8822be: Keep array subscript no lower than zero
The kbuild test robot reports the following:
drivers/staging//rtlwifi/phydm/phydm_dig.c: In function 'odm_pause_dig':
drivers/staging//rtlwifi/phydm/phydm_dig.c:494:45: warning: array subscript is below array bounds [-Warray-bounds]
odm_write_dig(dm, dig_tab->pause_dig_value[max_level]);
This condition is caused when a loop falls through. The fix is to pin
max_level to be >= 0.
Signed-off-by: Larry Finger <[email protected]>
c: kbuild test robot <[email protected]>
Fixes: 9ce99b04b5b82fdf11e4c76b60a5f82c1e541297 staging: r8822be: Add phydm mini driver
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions