aboutsummaryrefslogtreecommitdiffstats
path: root/module/os/linux/spl
diff options
context:
space:
mode:
authorchenqiuhao1997 <[email protected]>2024-05-10 23:47:21 +0800
committerGitHub <[email protected]>2024-05-10 08:47:21 -0700
commit41ae864b69991f7e13d5171f54a42c721b297233 (patch)
tree7a32e47472b3047f5ca8b28d3924bb75498c1fcf /module/os/linux/spl
parent1ede0c716beeee4a720ff5c361121021555d7e3c (diff)
Replace P2ALIGN with P2ALIGN_TYPED and delete P2ALIGN.
In P2ALIGN, the result would be incorrect when align is unsigned integer and x is larger than max value of the type of align. In that case, -(align) would be a positive integer, which means high bits would be zero and finally stay zero after '&' when align is converted to a larger integer type. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Youzhong Yang <[email protected]> Signed-off-by: Qiuhao Chen <[email protected]> Closes #15940
Diffstat (limited to 'module/os/linux/spl')
0 files changed, 0 insertions, 0 deletions