summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2012-05-10 23:31:10 +0400
committerJ. Bruce Fields <bfields@redhat.com>2012-06-01 04:29:48 +0400
commit5fb35a3a9bc482110b2c6afd1a5004909fa12501 (patch)
treeed8196cdcb00aa54958e9314a50543d8f42fd981 /fs
parentce0fc43c5a09d50ff5ffe208cbb0d3a9c82f038a (diff)
downloadlinux-5fb35a3a9bc482110b2c6afd1a5004909fa12501.tar.xz
nfsd: return 0 on reads of fault injection files
debugfs read operations were returning the contents of an uninitialized u64. Signed-off-by: Weston Andros Adamson <dros@netapp.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfsd/fault_inject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/fault_inject.c b/fs/nfsd/fault_inject.c
index 9559ce468732..e6c38159622f 100644
--- a/fs/nfsd/fault_inject.c
+++ b/fs/nfsd/fault_inject.c
@@ -58,6 +58,7 @@ static int nfsd_inject_set(void *op_ptr, u64 val)
static int nfsd_inject_get(void *data, u64 *val)
{
+ *val = 0;
return 0;
}