[PATCH v2 0/2] Fix sloppy typing in the FB area copying routines
Sergey Shtylyov
s.shtylyov at omp.ru
Fri Oct 13 20:50:22 UTC 2023
Here are 2 patches against the 'master' branch of Linus' 'linux.git' repo...
In {cfb|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.
Sergey Shtylyov (2):
video: fbdev: core: cfbcopyarea: fix sloppy typing
video: fbdev: core: syscopyarea: fix sloppy typing
drivers/video/fbdev/core/cfbcopyarea.c | 2 +-
drivers/video/fbdev/core/syscopyarea.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
--
2.26.3
More information about the dri-devel
mailing list