diff options
author | Sergey Shtylyov <s.shtylyov@omp.ru> | 2024-05-10 22:24:04 +0200 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2024-05-21 14:34:15 +0200 |
commit | 3c0a2e0b0ae661457c8505fecc7be5501aa7a715 (patch) | |
tree | 1a7a7a23b684517b38a1f96fb57323423210c09e /net | |
parent | pNFS: rework pnfs_generic_pg_check_layout to check IO range (diff) | |
download | linux-3c0a2e0b0ae661457c8505fecc7be5501aa7a715.tar.xz linux-3c0a2e0b0ae661457c8505fecc7be5501aa7a715.zip |
nfs: fix undefined behavior in nfs_block_bits()
Shifting *signed int* typed constant 1 left by 31 bits causes undefined
behavior. Specify the correct *unsigned long* type by using 1UL instead.
Found by Linux Verification Center (linuxtesting.org) with the Svace static
analysis tool.
Cc: stable@vger.kernel.org
Signed-off-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Reviewed-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions