diff options
author | Srinivas Kandagatla <[email protected]> | 2021-05-25 17:55:39 +0100 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2021-05-27 09:51:35 +0200 |
commit | dbec64b11c65d74f31427e2b9d5746fbf17bf840 (patch) | |
tree | d0089600fb919150a09375efceea53bf1b96cb78 /include/linux/fpga/fpga-bridge.h | |
parent | bdbe871ef0caa660e16461a2a94579d9f9ef7ba4 (diff) |
gpio: wcd934x: Fix shift-out-of-bounds error
bit-mask for pins 0 to 4 is BIT(0) to BIT(4) however we ended up with BIT(n - 1)
which is not right, and this was caught by below usban check
UBSAN: shift-out-of-bounds in drivers/gpio/gpio-wcd934x.c:34:14
Fixes: 59c324683400 ("gpio: wcd934x: Add support to wcd934x gpio controller")
Signed-off-by: Srinivas Kandagatla <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions