commit | f763946aefe67b3ea58696b75a930ba1ed886a83 | [log] [tgz] |
---|---|---|
author | Oded Gabbay <oded.gabbay@gmail.com> | Sat Aug 29 11:24:03 2020 +0300 |
committer | Oded Gabbay <oded.gabbay@gmail.com> | Tue Sep 22 18:49:51 2020 +0300 |
tree | 1976f43f7462efc719f263b450baf10ff4dd7064 | |
parent | 2f55342c5e4d3ea94c0b8237f3ad26963269f90f [diff] |
habanalabs: cast to u64 before shift > 31 bits When shifting a boolean variable by more than 31 bits and putting the result into a u64 variable, we need to cast the boolean into unsigned 64 bits to prevent possible overflow. Reported-by: kernel test robot <lkp@intel.com> Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>