aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorFabiano Rosas <[email protected]>2022-01-25 15:57:35 +0000
committerMichael Ellerman <[email protected]>2022-02-03 05:50:44 +0000
commit4feb74aa64b35b21a4937f96d7a940adee286e5b (patch)
treefd9c309897044cee4ba29566be056971ac9582ba /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parentKVM: PPC: Book3S HV: Free allocated memory if module init fails (diff)
downloadkernel-4feb74aa64b35b21a4937f96d7a940adee286e5b.tar.gz
kernel-4feb74aa64b35b21a4937f96d7a940adee286e5b.zip
KVM: PPC: Decrement module refcount if init_vm fails
We increment the reference count for KVM-HV/PR before the call to kvmppc_core_init_vm. If that function fails we need to decrement the refcount. Also remove the check on kvm_ops->owner because try_module_get can handle a NULL module. Signed-off-by: Fabiano Rosas <[email protected]> Reviewed-by: Nicholas Piggin <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions