Re: [PATCH RESEND] drm/msm: fix a potential memory leak issue in submit_create()

2025-05-04 Thread Rob Clark
On Wed, Apr 23, 2025 at 8:28 PM Haoxiang Li wrote: > > The memory allocated by msm_fence_alloc() actually is the > container of msm_fence_alloc()'s return value. Thus, just > free its return value is not enough. > Add a helper 'msm_fence_free()' in msm_fence.h/msm_fence.c > to do the complete job.

[PATCH RESEND] drm/msm: fix a potential memory leak issue in submit_create()

2025-04-23 Thread Haoxiang Li
The memory allocated by msm_fence_alloc() actually is the container of msm_fence_alloc()'s return value. Thus, just free its return value is not enough. Add a helper 'msm_fence_free()' in msm_fence.h/msm_fence.c to do the complete job. Fixes: f94e6a51e17c ("drm/msm: Pre-allocate hw_fence") Cc: sta