Sergey Shtylyov 74ea538aa2 nfs: fix undefined behavior in nfs_block_bits()
commit 3c0a2e0b0ae661457c8505fecc7be5501aa7a715 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-16 13:23:46 +02:00
..
2019-08-06 19:06:51 +02:00
2021-09-22 11:48:02 +02:00
2024-04-13 12:50:05 +02:00
2023-09-23 10:48:12 +02:00
2023-09-23 10:48:17 +02:00
2022-06-14 16:59:24 +02:00
2024-04-13 12:50:14 +02:00
2023-01-18 11:30:40 +01:00
2021-12-14 10:18:07 +01:00