KVM: PPC: e500mc: Fix a NULL dereference
We should set "err = -ENOMEM;", otherwise it means we're returning ERR_PTR(0) which is NULL. It results in a NULL pointer dereference in the caller. Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Signed-off-by: NPaul Mackerras <paulus@ozlabs.org>
Showing
想要评论请 注册 或 登录