summaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-11-05 11:24:27 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-11-24 12:48:11 +0100
commit803ed6cc4750a3eb4e36728e18446b7ee550a923 (patch)
tree9685fc290df609009b4a16abf7573b210e1e5f8c /fs/jbd2/commit.c
parent48c5c20b02d8c690b419d7bc911c08033161fc0a (diff)
can: peak_usb: fix potential integer overflow on shift of a int
[ Upstream commit 8a68cc0d690c9e5730d676b764c6f059343b842c ] The left shift of int 32 bit integer constant 1 is evaluated using 32 bit arithmetic and then assigned to a signed 64 bit variable. In the case where time_ref->adapter->ts_used_bits is 32 or more this can lead to an oveflow. Avoid this by shifting using the BIT_ULL macro instead. Fixes: bb4785551f64 ("can: usb: PEAK-System Technik USB adapters driver core") Signed-off-by: Colin Ian King <colin.king@canonical.com> Link: https://lore.kernel.org/r/20201105112427.40688-1-colin.king@canonical.com Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions