aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorSergey Shtylyov <[email protected]>2023-10-13 20:50:24 +0000
committerHelge Deller <[email protected]>2023-10-16 21:22:53 +0000
commite8e4a470b677511f9d1ad4f3cef32adc1d9a60ca (patch)
tree8ec1b53b2e90ea58bf9d0aa5b72198dbd23d5c58 /fs/jbd2/commit.c
parentfbdev: core: cfbcopyarea: fix sloppy typing (diff)
downloadkernel-e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca.tar.gz
kernel-e8e4a470b677511f9d1ad4f3cef32adc1d9a60ca.zip
fbdev: core: syscopyarea: fix sloppy typing
In sys_copyarea(), the local variable bits_per_line is needlessly typed as *unsigned long* -- which is a 32-bit type on the 32-bit arches and a 64-bit type on the 64-bit arches; that variable's value is derived from the __u32 typed fb_fix_screeninfo::line_length field (multiplied by 8u) and a 32-bit *unsigned int* type should still be enough to store the # of bits per line. Found by Linux Verification Center (linuxtesting.org) with the Svace static analysis tool. Signed-off-by: Sergey Shtylyov <[email protected]> Signed-off-by: Helge Deller <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions