linux/arch/arm64
Will Deacon f967dfcedb KVM: ARM/arm64: avoid returning negative error code as bool
commit 18d457661f upstream.

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 <christoffer.dall@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-06-29 12:25:38 -07:00
..
boot arm64: dts: Reduce size of virtio block device for foundation model 2013-12-20 16:20:21 +00:00
configs arm64: defconfig: Expand default enabled features 2014-02-07 17:17:28 +00:00
include KVM: ARM/arm64: fix broken __percpu annotation 2015-06-29 12:25:38 -07:00
kernel arm64: vdso: fix build error when switching from LE to BE 2015-05-06 21:59:14 +02:00
kvm KVM: ARM/arm64: avoid returning negative error code as bool 2015-06-29 12:25:38 -07:00
lib arm64: __clear_user: handle exceptions on strb 2014-11-21 09:23:02 -08:00
mm arm64: Honor __GFP_ZERO in dma allocations 2015-03-26 15:06:59 +01:00
xen xen/arm,arm64: enable SWIOTLB_XEN 2013-10-10 13:40:44 +00:00
Kconfig locking/mutex: Disable optimistic spinning on some architectures 2014-07-28 08:06:03 -07:00
Kconfig.debug arm64: Remove duplicate DEBUG_STACK_USAGE config 2013-10-02 18:03:26 +01:00
Makefile arm64: big-endian: add big-endian support to top-level arch Makefile 2013-10-25 15:59:31 +01:00