Skip to content
Commit 73e77c09 authored by Dan Carpenter's avatar Dan Carpenter Committed by Paul Mackerras
Browse files

KVM: PPC: e500: Fix some NULL dereferences on error



There are some error paths in kvmppc_core_vcpu_create_e500() where we
forget to set the error code.  It means that we return ERR_PTR(0) which
is NULL and it results in a NULL pointer dereference in the caller.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
parent 712b12d7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment