lockd: fix decoding of TEST results
authorJ. Bruce Fields <bfields@redhat.com>
Mon, 26 Nov 2018 16:36:52 +0000 (11:36 -0500)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 27 Nov 2018 21:24:01 +0000 (16:24 -0500)
commitb8db159239b3f51e2b909859935cc25cb3ff3eed
treeafa91aa9e59d697f6129c45c2a0b0372fcb3911d
parent0d4d6720ce9ac0d393aa35696520fde48b2064a5
lockd: fix decoding of TEST results

We fail to advance the read pointer when reading the stat.oh field that
identifies the lock-holder in a TEST result.

This turns out not to matter if the server is knfsd, which always
returns a zero-length field.  But other servers (Ganesha is an example)
may not do this.  The result is bad values in fcntl F_GETLK results.

Fix this.

Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/clnt4xdr.c
fs/lockd/clntxdr.c