diff options
| author | Rob Clark <[email protected]> | 2023-05-09 20:30:41 +0000 |
|---|---|---|
| committer | Rob Clark <[email protected]> | 2023-05-11 14:41:48 +0000 |
| commit | 68dc6c2d5eec45515855cce99256162f45651a0b (patch) | |
| tree | ce26c9cff410ac341543d90f3b9b1edb9381caf4 /lib/string_helpers.c | |
| parent | drm/msm/iommu: Fix null pointer dereference in no-IOMMU case (diff) | |
| download | kernel-68dc6c2d5eec45515855cce99256162f45651a0b.tar.gz kernel-68dc6c2d5eec45515855cce99256162f45651a0b.zip | |
drm/msm: Fix submit error-path leaks
For errors after msm_submitqueue_get(), we need to drop the submitqueue
reference. Additionally after get_unused_fd() we need to drop the fd.
The ordering for dropping the queue lock and put_unused_fd() is not
important, so just move this all into out_post_unlock.
v2: Only drop queue ref if submit doesn't take it
v3: Fix unitialized submit ref in error path
v4: IS_ERR_OR_NULL()
Reported-by: [email protected]
Fixes: f0de40a131d9 drm/msm: ("Reorder lock vs submit alloc")
Signed-off-by: Rob Clark <[email protected]>
Patchwork: https://patchwork.freedesktop.org/patch/536073/
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions
