diff options
| author | Ryder Lee <ryder.lee@mediatek.com> | 2022-12-07 10:30:05 +0300 |
|---|---|---|
| committer | Felix Fietkau <nbd@nbd.name> | 2022-12-09 18:45:39 +0300 |
| commit | edb0406bda4629ef496f52eb11cbea7e92ed301b (patch) | |
| tree | 8dbc25c8b292f25c419c1c096e2312d71473b965 /include/linux | |
| parent | 063cca0252b46970e7e9ca423d5e930be3179aa1 (diff) | |
| download | linux-edb0406bda4629ef496f52eb11cbea7e92ed301b.tar.xz | |
wifi: mt76: mt7915: fix unintended sign extension of mt7915_hw_queue_read()
In the expression "map[i].qid << 24" starts as u8, but is promoted to
"signed int", then sign-extended to type "unsigned long", which is not
intended. Cast to u32 to avoid the sign extension.
Fixes: 776ec4e77aa6 ("mt76: mt7915: rework debugfs queue info")
Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
