summaryrefslogtreecommitdiff
path: root/include/linux/exportfs.h
diff options
context:
space:
mode:
authorWill Deacon <will.deacon@arm.com>2014-08-26 15:13:22 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-06-29 12:25:38 -0700
commitf967dfcedb7d33d953860cf337451ed5ea484e6e (patch)
tree9deb81ccf8bd4b3b7c676b6450555fa128fda4fa /include/linux/exportfs.h
parentac413349b7968c30a3986cc39ce14cc84a4bc05c (diff)
KVM: ARM/arm64: avoid returning negative error code as bool
commit 18d457661fb9fa69352822ab98d39331c3d0e571 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>
Diffstat (limited to 'include/linux/exportfs.h')
0 files changed, 0 insertions, 0 deletions