Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ipc/sem: ensure we left shift a ULL rather than a 32 bit integer
The left shift amount is sop->sem_num % 64, which is up to 63, so ensure we are shifting a ULL rather than a 32 bit value. CoverityScan CID#1372862 "Bad bit shift operation" Fixes: 7c24530 ("ipc/sem: optimize perform_atomic_semop()") Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Colin Ian King <[email protected]> Cc: Davidlohr Bueso <[email protected]> Cc: Manfred Spraul <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
- Loading branch information