All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915/fb: replace kmalloc_array with kmalloc_objs
@ 2026-09-10 15:58 Lalit Shankar Chowdhury
  2026-09-11 21:46 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
  2026-09-11 22:05 ` Patchwork
  0 siblings, 2 replies; 3+ messages in thread
From: Lalit Shankar Chowdhury @ 2026-09-10 15:58 UTC (permalink / raw)
  To: Jani Nikula, Rodrigo Vivi, Joonas Lahtinen, Tvrtko Ursulin,
	David Airlie, Simona Vetter,
	open list:INTEL DRM DISPLAY FOR XE AND I915 DRIVERS,
	open list:INTEL DRM DISPLAY FOR XE AND I915 DRIVERS,
	open list:DRM DRIVERS, open list
  Cc: Lalit Shankar Chowdhury

Replace the remaining kmalloc_array instance with kmalloc_objs.

Signed-off-by: Lalit Shankar Chowdhury <lalitshankarch@gmail.com>
---
 drivers/gpu/drm/i915/display/intel_fb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/i915/display/intel_fb.c b/drivers/gpu/drm/i915/display/intel_fb.c
index 1c0859d5f829..c3e4c3f6d8cf 100644
--- a/drivers/gpu/drm/i915/display/intel_fb.c
+++ b/drivers/gpu/drm/i915/display/intel_fb.c
@@ -596,7 +596,7 @@ u64 *intel_fb_plane_get_modifiers(struct intel_display *display,
 			count++;
 	}
 
-	list = kmalloc_array(count, sizeof(*list), GFP_KERNEL);
+	list = kmalloc_objs(*list, count);
 	if (drm_WARN_ON(display->drm, !list))
 		return NULL;
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-11 22:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-10 15:58 [PATCH] drm/i915/fb: replace kmalloc_array with kmalloc_objs Lalit Shankar Chowdhury
2026-09-11 21:46 ` ✗ LGCI.VerificationFailed: failure for " Patchwork
2026-09-11 22:05 ` Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.