From: Will Deacon Date: Tue, 26 Aug 2014 14:13:22 +0000 (+0100) Subject: KVM: ARM/arm64: avoid returning negative error code as bool X-Git-Tag: fixes-for-v3.18-merge-window~23^2~3^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18d457661fb9fa69352822ab98d39331c3d0e571;p=pandora-kernel.git KVM: ARM/arm64: avoid returning negative error code as bool 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 Cc: Marc Zyngier Signed-off-by: Will Deacon Signed-off-by: Christoffer Dall --- Reading git-diff-tree failed