diff options
| author | Oded Gabbay <oded.gabbay@gmail.com> | 2020-08-29 11:24:03 +0300 |
|---|---|---|
| committer | Oded Gabbay <oded.gabbay@gmail.com> | 2020-09-22 18:49:51 +0300 |
| commit | f763946aefe67b3ea58696b75a930ba1ed886a83 (patch) | |
| tree | 1976f43f7462efc719f263b450baf10ff4dd7064 /scripts/const_structs.checkpatch | |
| 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>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
