linux/drivers/media
Thomas Zimmermann 3f8974f68f fbdev: Validate info->screen_{base, buffer} in fb_ops implementations
Push the test for info->screen_base from fb_read() and fb_write() into
the implementations of struct fb_ops.{fb_read,fb_write}. In cases where
the driver operates on info->screen_buffer, test this field instead.

While bothi fields, screen_base and screen_buffer, are stored in the
same location, they refer to different address spaces. For correctness,
we want to test each field in exactly the code that uses it.

v2:
	* also test screen_base in pvr2fb (Geert)
	* also test screen_buffer in ivtvfb, arcfb, broadsheetfb,
	  hecubafb, metronomefb and ssd1307fb (Geert)
	* give a rational for the change (Geert)

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Tested-by: Sui Jingfeng <suijingfeng@loongson.cn>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
Acked-by: Helge Deller <deller@gmx.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20230428122452.4856-18-tzimmermann@suse.de
History 2023-05-08 15:28:34 +02:00
..
cec media: Switch to use dev_err_probe() helper 2022-12-07 17:58:46 +01:00
common media updates for v6.3-rc1 2023-02-26 11:47:26 -08:00
dvb-core Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
dvb-frontends media: dvb-frontends: mb86a16.c: always use the same error path 2023-02-08 08:40:13 +01:00
firewire media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00
i2c media: m5mols: fix off-by-one loop termination error 2023-03-18 11:07:15 -07:00
mc media: mc: entity: Fix minor issues in comments and documentation 2023-02-06 08:37:12 +01:00
mmc media: media/*/Kconfig: sort entries 2022-03-18 05:58:35 +01:00
pci fbdev: Validate info->screen_{base, buffer} in fb_ops implementations 2023-05-08 15:28:34 +02:00
platform ARM: SoC drivers for 6.3 2023-02-27 10:04:49 -08:00
radio media: radio/wl128x: remove unnecessary (void*) conversions 2023-02-08 07:26:02 +01:00
rc media updates for v6.3-rc1 2023-02-26 11:47:26 -08:00
spi media updates for v5.18-rc1 2022-03-23 14:51:35 -07:00
test-drivers media: visl: make visl_qops static 2023-02-08 08:29:53 +01:00
tuners media: tuners/si2157: Convert to i2c's .probe_new() 2023-01-22 08:33:25 +01:00
usb media updates for v6.3-rc1 2023-02-26 11:47:26 -08:00
v4l2-core media updates for v6.3-rc1 2023-02-26 11:47:26 -08:00
Kconfig media: Kconfig: Make DVB_CORE=m possible when MEDIA_SUPPORT=y 2022-12-07 17:58:46 +01:00
Makefile media: Makefiles: remove extra spaces 2022-03-12 16:59:52 +01:00