diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-02-11 08:08:32 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-02-12 11:26:19 -0500 |
commit | 0ab39de6b341189589093777f241dd803b417fc0 (patch) | |
tree | feef882c792e87b05f40a93212741aaf836c0d95 /fs | |
parent | c23ae6017835b5bc9b9ec9d5d9c2b1523053f503 (diff) |
nfsd: fix comparison in fh_fsid_match()
We're supposed to be testing that the fh_fsid's match but because the
parenthesis are in the wrong place, then we only check the first
byte.
Fixes: 9558f2500a20 ('nfsd: add fh_fsid_match helper')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/nfsd/nfsfh.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfsfh.h b/fs/nfsd/nfsfh.h index 84cae2079d21..f22920442172 100644 --- a/fs/nfsd/nfsfh.h +++ b/fs/nfsd/nfsfh.h | |||
@@ -200,7 +200,7 @@ static inline bool fh_fsid_match(struct knfsd_fh *fh1, struct knfsd_fh *fh2) | |||
200 | { | 200 | { |
201 | if (fh1->fh_fsid_type != fh2->fh_fsid_type) | 201 | if (fh1->fh_fsid_type != fh2->fh_fsid_type) |
202 | return false; | 202 | return false; |
203 | if (memcmp(fh1->fh_fsid, fh2->fh_fsid, key_len(fh1->fh_fsid_type) != 0)) | 203 | if (memcmp(fh1->fh_fsid, fh2->fh_fsid, key_len(fh1->fh_fsid_type)) != 0) |
204 | return false; | 204 | return false; |
205 | return true; | 205 | return true; |
206 | } | 206 | } |