aboutsummaryrefslogtreecommitdiff
path: root/net/unix/sysctl_net_unix.c
diff options
context:
space:
mode:
authorGeert Uytterhoeven <[email protected]>2022-01-31 14:26:20 +0100
committerPalmer Dabbelt <[email protected]>2022-02-14 12:27:38 -0800
commit12f4a665cc3568328728e46c3162873b5b69cd27 (patch)
treea094e398faaf8bb171303d8753fed50744d1ef36 /net/unix/sysctl_net_unix.c
parent6df2a016c0c8a3d0933ef33dd192ea6606b115e3 (diff)
RISC-V: Fix hartid mask handling for hartid 31 and up
Jessica reports that using "1 << hartid" causes undefined behavior for hartid 31 and up. Fix this by using the BIT() helper instead of an explicit shift. Reported-by: Jessica Clarke <[email protected]> Fixes: 26fb751ca37846c9 ("RISC-V: Do not use cpumask data structure for hartid bitmap") Signed-off-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Atish Patra <[email protected]> Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions