KVM: PPC: BookE: Fix a sanity check
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Jul 2016 10:15:46 +0000 (13:15 +0300)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 27 Sep 2016 05:14:29 +0000 (15:14 +1000)
commitac0e89bb4744d3882ccd275f2416d9ce22f4e1e7
treeeb6ff760ea8854dafb3c74c63541696ea1e8056f
parentb009031f74da1c71f306bbe410da78bd9d848669
KVM: PPC: BookE: Fix a sanity check

We use logical negate where bitwise negate was intended.  It means that
we never return -EINVAL here.

Fixes: ce11e48b7fdd ('KVM: PPC: E500: Add userspace debug stub support')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/booke.c