Subject: [PATCH 03/11] KVM: ARM/arm64: avoid returning negative error code as bool

From: [email-masked] (Christoffer Dall)
Date: Tue, 26 Aug 2014 16:49:37 +0200

On Tue, Aug 26, 2014 at 03:13:22PM +0100, Will Deacon wrote:
> is_valid_cache returns true if the specified cache is valid.
> Unfortunately, if the parameter passed it out of range, we return
> -ENOENT, which ends up as true leading to potential hilarity.
> 
> This patch returns false on the failure path instead.
> 
> Cc: Christoffer Dall <[email-masked]>
> Cc: Marc Zyngier <[email-masked]>
> Signed-off-by: Will Deacon <[email-masked]>

nice one!

Acked-by: Christoffer Dall <[email-masked]>