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/nfsd/fault_inject.c | |
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/nfsd/fault_inject.c')
-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 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) | |||
58 | 58 | ||
59 | static int nfsd_inject_get(void *data, u64 *val) | 59 | static int nfsd_inject_get(void *data, u64 *val) |
60 | { | 60 | { |
61 | *val = 0; | ||
61 | return 0; | 62 | return 0; |
62 | } | 63 | } |
63 | 64 | ||