diff options
author | Weston Andros Adamson <dros@netapp.com> | 2012-05-10 15:31:10 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2012-05-31 20:29:48 -0400 |
commit | 5fb35a3a9bc482110b2c6afd1a5004909fa12501 (patch) | |
tree | ed8196cdcb00aa54958e9314a50543d8f42fd981 /fs | |
parent | ce0fc43c5a09d50ff5ffe208cbb0d3a9c82f038a (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfsd/fault_inject.c b/fs/nfsd/fault_inject.c index 9559ce46873..e6c38159622 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; } |