Files
linux/drivers/i3c
Dan Carpenter 3ae39e99e5 i3c: Fix a shift wrap bug in i3c_bus_set_addr_slot_status()
commit 476c7e1d34 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-05-11 07:49:56 +02:00
..
2018-11-12 10:33:49 +01:00
2018-11-12 10:33:49 +01:00
2018-11-12 10:33:49 +01:00
2018-11-12 10:33:49 +01:00