diff options
author | 2021-05-18 20:35:02 +0800 | |
---|---|---|
committer | 2021-05-20 22:09:46 +0200 | |
commit | ea8c9ed53f871ac90659fe519c85b8f10a51677d (patch) | |
tree | 273692b9ff13348eef9a011e27f90b773999c1dc /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | vgaarb: Use ACPI HID name to find integrated GPU (diff) | |
download | linux-dev-ea8c9ed53f871ac90659fe519c85b8f10a51677d.tar.xz linux-dev-ea8c9ed53f871ac90659fe519c85b8f10a51677d.zip |
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: 70556e24e18e ("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
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions