aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strlcpy-src.c
diff options
context:
space:
mode:
authorFabiano Rosas <[email protected]>2022-01-25 12:57:35 -0300
committerMichael Ellerman <[email protected]>2022-02-03 16:50:44 +1100
commit4feb74aa64b35b21a4937f96d7a940adee286e5b (patch)
treefd9c309897044cee4ba29566be056971ac9582ba /lib/test_fortify/write_overflow-strlcpy-src.c
parent175be7e5800e2782a7e38ee9e1b64633494c4b44 (diff)
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 'lib/test_fortify/write_overflow-strlcpy-src.c')
0 files changed, 0 insertions, 0 deletions