Skip to content

Commit

Permalink
nfsd: return 0 on reads of fault injection files
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Weston Andros Adamson authored and J. Bruce Fields committed Jun 1, 2012
1 parent ce0fc43 commit 5fb35a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/nfsd/fault_inject.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5fb35a3

Please sign in to comment.