1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/imx
Dan Carpenter 9cb3542aee drm/imx/dcss: fix resource size calculation
The resource is inclusive of the ->start and ->end addresses so this
calculation is not correct.  It should be "res->end - res->start + 1".
Use the resource_size() to do the calculation.

Fixes: 90393c9b54 ("drm/imx/dcss: request memory region")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Link: https://patchwork.freedesktop.org/patch/msgid/4914592b-4256-4c9c-bc1d-6dec1e473831@moroto.mountain
2024-02-28 09:16:59 +00:00
..
dcss drm/imx/dcss: fix resource size calculation 2024-02-28 09:16:59 +00:00
ipuv3 drm/imx: prefer snprintf over sprintf 2024-01-31 11:04:25 +02:00
lcdc drm/imx/lcdc: Fix double-free of driver data 2023-12-01 16:04:14 +01:00
Kconfig drm/imx/lcdc: Implement DRM driver for imx25 2023-03-14 11:43:53 +01:00
Makefile drm/imx/lcdc: Implement DRM driver for imx25 2023-03-14 11:43:53 +01:00