Re: [PATCH 2/3] drm/gud: use devm_add_action_or_reset() helper

2024-09-12 Thread Noralf Trønnes
On 07.09.2024 09:00, He Lugang wrote: > Use devm_add_action_or_reset() to release resources in case of failure, > because the cleanup function will be automatically called. > > Signed-off-by: He Lugang > --- > drivers/gpu/drm/gud/gud_drv.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(

[PATCH 2/3] drm/gud: use devm_add_action_or_reset() helper

2024-09-07 Thread He Lugang
Use devm_add_action_or_reset() to release resources in case of failure, because the cleanup function will be automatically called. Signed-off-by: He Lugang --- drivers/gpu/drm/gud/gud_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/gud/gud_drv.c b/driver