diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-02-11 16:01:08 +0300 |
---|---|---|
committer | Dave Kleikamp <dave.kleikamp@oracle.com> | 2021-02-11 20:25:54 +0300 |
commit | 4208c398aae4c2290864ba15c3dab7111f32bec1 (patch) | |
tree | 289d5523e2912141c30e2aa0fda2fcdbf6c36cff /block | |
parent | 093e0687c5baacc29e4e8dd3ea205bac518e38bc (diff) | |
download | linux-4208c398aae4c2290864ba15c3dab7111f32bec1.tar.xz |
fs/jfs: fix potential integer overflow on shift of a int
The left shift of int 32 bit integer constant 1 is evaluated using 32 bit
arithmetic and then assigned to a signed 64 bit integer. In the case where
l2nb is 32 or more this can lead to an overflow. Avoid this by shifting
the value 1LL instead.
Addresses-Coverity: ("Uninitentional integer overflow")
Fixes: b40c2e665cd5 ("fs/jfs: TRIM support for JFS Filesystem")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions