]> git.baikalelectronics.ru Git - kernel.git/commit
drm: Fix missing unlock and free on error in drm_legacy_addbufs_pci()
authorZou Wei <zou_wei@huawei.com>
Tue, 18 May 2021 12:35:02 +0000 (20:35 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 20 May 2021 20:09:46 +0000 (22:09 +0200)
commitf96b72b27c80eeb22b6b604a42e211ed02f33690
tree273692b9ff13348eef9a011e27f90b773999c1dc
parenteace8a44c47b4c6cc22f5ef0527b3b856195f6df
drm: Fix missing unlock and free on error in drm_legacy_addbufs_pci()

Add the missing unlock and free before return from function
drm_legacy_addbufs_pci() in the error handling case.

Fixes: d61a8b731295 ("drm: remove usage of drm_pci_alloc/free")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1621341302-112089-1-git-send-email-zou_wei@huawei.com
drivers/gpu/drm/drm_bufs.c