linux/drivers/i3c
Dan Carpenter 476c7e1d34 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: 3a379bbcea ("i3c: Add core I3C infrastructure")
Cc: <stable@vger.kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
2019-05-06 08:15:02 +02:00
..
master i3c: master: dw: remove dead code from dw_i3c_master_*_xfers() 2019-03-30 08:41:44 +01:00
device.c
internals.h
Kconfig
Makefile
master.c i3c: Fix a shift wrap bug in i3c_bus_set_addr_slot_status() 2019-05-06 08:15:02 +02:00