]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf4557f61da37d67dddd2f17eb38d85a1f97b6ca9
treeafa91aa9e59d697f6129c45c2a0b0372fcb3911d
parentdbf9880e0e51a87691bd2f580927e00aecaa4be0
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