[PATCH 1/2] KVM: PPC: e500: fix some NULL dereferences on error
Paul Mackerras
paulus at ozlabs.org
Thu Aug 31 13:40:19 AEST 2017
On Thu, Jul 13, 2017 at 10:38:29AM +0300, Dan Carpenter wrote:
> 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: Dan Carpenter <dan.carpenter at oracle.com>
Thanks, both patches applied to my kvm-ppc-next branch.
Paul.
More information about the Linuxppc-dev
mailing list