qcacmn: Changing the integer suffix from 1L to 1ULL

In expression 1L << err_code if the err_code is more than 32,
it is left shifting by more than 32 bits which will result in
undefined behavior and will be overflowed. So changing the suffix
from 1L to 1ULL as max value of err_code can go up to 63.

Change-Id: I6218a1634e982e4f25e5d92d55325ed9bb2658e9
CRs-Fixed: 3627050
This commit is contained in:
Vaishnavi Chekuru
2023-09-27 18:01:41 +05:30
committad av Rahul Choudhary
förälder 6505649e39
incheckning c3697eb2a0

Visa fil

@@ -1325,7 +1325,7 @@ static inline bool
dp_rx_is_valid_undecoded_frame(uint64_t err_mask, uint8_t err_code)
{
if (err_code < CDP_PHYRX_ERR_MAX &&
(err_mask & (1L << err_code)))
(err_mask & (1ULL << err_code)))
return true;
return false;