Files
linux/drivers/gpu/drm
Jann Horn ca2a6abdae drm/panthor: Fix memory leak in panthor_ioctl_group_create()
When bailing out due to group_priority_permit() failure, the queue_args
need to be freed. Fix it by rearranging the function to use the
goto-on-error pattern, such that the success case flows straight without
indentation while error cases jump forward to cleanup.

Cc: stable@vger.kernel.org
Fixes: 5f7762042f ("drm/panthor: Restrict high priorities on group_create")
Signed-off-by: Jann Horn <jannh@google.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Liviu Dudau <liviu.dudau@arm.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20241113-panthor-fix-gcq-bailout-v1-1-654307254d68@google.com
2025-07-18 16:48:00 +01:00
..
2025-07-04 11:06:38 -07:00
2025-06-16 09:01:23 +02:00
2025-04-23 15:40:30 -05:00
2025-06-26 12:37:24 +03:00
2025-06-23 11:30:18 +02:00
2025-07-07 15:24:03 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-07-04 11:09:43 -07:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:00:09 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00
2025-06-16 09:01:23 +02:00