Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit f72d2e6d authored by Colin Ian King's avatar Colin Ian King Committed by Alok Chauhan
Browse files

i3c: fix undefined behaviour of a shift of an int by more than 31 places



Currently the shift of two enum ints by more than 31 places on
can result in undefined behaviour with 64 bit longs. Fix this by
casting the ints to unsigned long before the shift.

Addresses-Coverity: ("Bad shift operation").
Fixes: 3a379bbcea0a ("i3c: Add core I3C infrastructure").

Change-Id: I483f5ba295e01177c0cab0cd14a12dd6becf08f2
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Git-commit: 476c7e1d34f2a03b1aa5a924c50703053fe5f77c
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarAlok Chauhan <alokc@codeaurora.org>
parent 1d627887
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment