OSDN Git Service

nfsd: fix comparison in fh_fsid_match()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Feb 2015 13:08:32 +0000 (16:08 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 12 Feb 2015 16:26:19 +0000 (11:26 -0500)
commit0ab39de6b341189589093777f241dd803b417fc0
treefeef882c792e87b05f40a93212741aaf836c0d95
parentc23ae6017835b5bc9b9ec9d5d9c2b1523053f503
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>
fs/nfsd/nfsfh.h