Re: [PATCH -next] drm: Fix missing unlock and free on error in drm_legacy_addbufs_pci()

2021-05-19 Thread Daniel Vetter
On Tue, May 18, 2021 at 08:35:02PM +0800, Zou Wei wrote: > Add the missing unlock and free before return from function > drm_legacy_addbufs_pci() in the error handling case. > > Fixes: 70556e24e18e ("drm: remove usage of drm_pci_alloc/free") > Reported-by: Hulk Robot > Signed-off-by: Zou Wei Ap

[PATCH -next] drm: Fix missing unlock and free on error in drm_legacy_addbufs_pci()

2021-05-18 Thread Zou Wei
Add the missing unlock and free before return from function drm_legacy_addbufs_pci() in the error handling case. Fixes: 70556e24e18e ("drm: remove usage of drm_pci_alloc/free") Reported-by: Hulk Robot Signed-off-by: Zou Wei --- drivers/gpu/drm/drm_bufs.c | 10 +- 1 file changed, 9 inser