All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] drm/v3d: replace objs lookup steps with drm_gem_objects_lookup
@ 2022-03-21 21:13 ` Melissa Wen
  0 siblings, 0 replies; 6+ messages in thread
From: Melissa Wen @ 2022-03-21 21:13 UTC (permalink / raw)
  To: airlied, daniel, emma; +Cc: Melissa Wen, linux-kernel, dri-devel

The first patch just prevents to iterate on a NULL job->bo array during
job cleanup. This situation can happen when v3d_lookup_bos() fails to
allocate memory for the job->bo array and job->bo_count was already set.
The second replace BOs lookup steps in v3d_lookup_bos() with the
common code in drm_gem_objects_lookup().

Melissa Wen (2):
  drm/v3d: cleanup BOs properly when lookup_bos fails
  drm/v3d: replace obj lookup steps with drm_gem_objects_lookup

 drivers/gpu/drm/v3d/v3d_gem.c | 55 ++++-------------------------------
 1 file changed, 6 insertions(+), 49 deletions(-)

-- 
2.35.1


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

end of thread, other threads:[~2022-03-21 23:00 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-21 21:13 [PATCH 0/2] drm/v3d: replace objs lookup steps with drm_gem_objects_lookup Melissa Wen
2022-03-21 21:13 ` Melissa Wen
2022-03-21 21:13 ` [PATCH 1/2] drm/v3d: cleanup BOs properly when lookup_bos fails Melissa Wen
2022-03-21 21:13   ` Melissa Wen
2022-03-21 21:13 ` [PATCH 2/2] drm/v3d: replace obj lookup steps with drm_gem_objects_lookup Melissa Wen
2022-03-21 21:13   ` Melissa Wen

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.