diff options
author | 2013-02-05 10:08:35 +0200 | |
---|---|---|
committer | 2013-02-11 11:54:27 +0100 | |
commit | 8115efbdc82acc935b54f0a849eb834129ea1fd0 (patch) | |
tree | e1f125c030647f0c9ea2f63d0a7c6d0a12a64229 /tools/perf/scripts/python/check-perf-trace.py | |
parent | iwlwifi: mvm: Change the Time Event type used for ROC (diff) | |
download | linux-dev-8115efbdc82acc935b54f0a849eb834129ea1fd0.tar.xz linux-dev-8115efbdc82acc935b54f0a849eb834129ea1fd0.zip |
iwlwifi: mvm: fix the keyidx assignment
Fixes an issue that smatch pointed out:
1118
1119 key_flags = cpu_to_le16(keyconf->keyidx & STA_KEY_FLG_KEYID_MSK);
^^^^^^^^^^^^^^^
This is s8.
^^^^^^^^^^^^^^^^^^^^^
STA_KEY_FLG_KEYID_MSK is 0x300.
The result after the bitwise AND is always zero because 0xff & 0x300.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions