summaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorWeston Andros Adamson <dros@netapp.com>2012-05-10 21:31:10 +0200
committerJ. Bruce Fields <bfields@redhat.com>2012-06-01 02:29:48 +0200
commit5fb35a3a9bc482110b2c6afd1a5004909fa12501 (patch)
treeed8196cdcb00aa54958e9314a50543d8f42fd981 /fs/nfsd
parentnfsd: wrap all accesses to st_deny_bmap (diff)
downloadlinux-5fb35a3a9bc482110b2c6afd1a5004909fa12501.tar.xz
linux-5fb35a3a9bc482110b2c6afd1a5004909fa12501.zip
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/nfsd')
-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;
}