aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_printf.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2019-04-23 10:40:20 +0000
committerBoris Brezillon <[email protected]>2019-05-06 06:15:02 +0000
commit476c7e1d34f2a03b1aa5a924c50703053fe5f77c (patch)
tree4b78b80c72c9e9a18e0bd34f352696b330af5f11 /lib/test_printf.c
parenti3c: master: dw: remove dead code from dw_i3c_master_*_xfers() (diff)
downloadkernel-476c7e1d34f2a03b1aa5a924c50703053fe5f77c.tar.gz
kernel-476c7e1d34f2a03b1aa5a924c50703053fe5f77c.zip
i3c: Fix a shift wrap bug in i3c_bus_set_addr_slot_status()
The problem here is that addr can be I3C_BROADCAST_ADDR (126). That means we're shifting by (126 * 2) % 64 which is 60. The I3C_ADDR_SLOT_STATUS_MASK is an enum which is an unsigned int in GCC so shifts greater than 31 are undefined. Fixes: 3a379bbcea0a ("i3c: Add core I3C infrastructure") Cc: <[email protected]> Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Boris Brezillon <[email protected]>
Diffstat (limited to 'lib/test_printf.c')
0 files changed, 0 insertions, 0 deletions