Re: [PATCH] drm/tiny: Use kmalloc_array() instead of kmalloc()

2025-09-23 Thread Rahul Kumar
On Tue, Sep 23, 2025 at 7:21 PM Jani Nikula wrote: > > On Tue, 23 Sep 2025, Rahul Kumar wrote: > > Documentation/process/deprecated.rst recommends against the use of > > kmalloc with dynamic size calculations due to the risk of overflow and > > smaller allocation being

[PATCH] drm/tiny: Use kmalloc_array() instead of kmalloc()

2025-09-23 Thread Rahul Kumar
allocation size clearer and avoid potential overflow issues. Signed-off-by: Rahul Kumar --- drivers/gpu/drm/tiny/repaper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tiny/repaper.c b/drivers/gpu/drm/tiny/repaper.c index 5c3b51eb0a97..4d439a2d973a 100644 --- a

Re: [PATCH] drm/komeda: Convert logging in komeda_crtc.c to drm_* with drm_device parameter

2025-09-18 Thread Rahul Kumar
Hi Liviu, On Tue, Aug 12, 2025 at 4:42 PM Liviu Dudau wrote: > > On Tue, Aug 12, 2025 at 03:41:19PM +0530, Rahul Kumar wrote: > > Replace all dev_err(), dev_warn(), dev_info() and DRM_ERROR/WARN/INFO() > > calls in drivers/gpu/drm/arm/display/komeda/komeda_crtc.c with the

[PATCH v2] drm/amdgpu: Use kmalloc_array() instead of kmalloc()

2025-09-18 Thread Rahul Kumar
, amdgpu_amdkfd_gfx_v11.c and amdgpu_amdkfd_gfx_v12.c to make the intended allocation size clearer and avoid potential overflow issues. Suggested-by: Felix Kuehling Signed-off-by: Rahul Kumar --- Changes since v1: - Extend fix to amdgpu_amdkfd_gfx_v10_3.c, amdgpu_amdkfd_gfx_v11.c and

[PATCH] drm/amdgpu: Use kmalloc_array() instead of kmalloc()

2025-09-16 Thread Rahul Kumar
size clearer and avoid potential overflow issues. Signed-off-by: Rahul Kumar --- drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v10.c b/drivers/gpu/drm/amd/amdgpu

Re: [PATCH] drm/komeda: Convert logging in komeda_crtc.c to drm_* with drm_device parameter

2025-08-13 Thread Rahul Kumar
Thanks for the review and feedback, Liviu. I will follow this for my future patches. Regards, Rahul On Tue, Aug 12, 2025 at 5:50 PM Rahul Kumar wrote: > > Thanks for the review and feedback, Liviu. > I will follow this for my future patches. > > Regards, > Rahul > > O

Re: [PATCH] drm/komeda: Convert logging in komeda_crtc.c to drm_* with drm_device parameter

2025-08-13 Thread Rahul Kumar
Thanks for the review and feedback, Liviu. I will follow this for my future patches. Regards, Rahul On Tue, Aug 12, 2025 at 4:42 PM Liviu Dudau wrote: > On Tue, Aug 12, 2025 at 03:41:19PM +0530, Rahul Kumar wrote: > > Replace all dev_err(), dev_warn(), dev_info() and DRM_ERROR/

[PATCH] drm/komeda: Convert logging in komeda_crtc.c to drm_* with drm_device parameter

2025-08-13 Thread Rahul Kumar
meter". Signed-off-by: Rahul Kumar --- .../gpu/drm/arm/display/komeda/komeda_crtc.c | 27 +++ 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c b/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c index 2ad33559a33a..e4

[PATCH] drm/komeda: Convert logging in komeda_crtc.c to drm_* with drm_device parameter

2025-08-11 Thread Rahul Kumar
meter". Signed-off-by: Rahul Kumar --- .../gpu/drm/arm/display/komeda/komeda_crtc.c | 37 +++ 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c b/drivers/gpu/drm/arm/display/komeda/komeda_crtc.c index 2ad33559a33a..b5

[PATCH] docs: fix doc warning for DC_HDCP_LC_ENABLE_SW_FALLBACK in amd_shared.h

2025-05-15 Thread Rahul Kumar
`, and the warning is no longer present. Signed-off-by: Rahul Kumar --- drivers/gpu/drm/amd/include/amd_shared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/amd_shared.h b/drivers/gpu/drm/amd/include/amd_shared.h index 4c95b885d1d0