]> git.baikalelectronics.ru Git - kernel.git/commit
lockd: fix nlm_close_files
authorJeff Layton <jlayton@kernel.org>
Mon, 11 Jul 2022 18:30:14 +0000 (14:30 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 11 Jul 2022 19:49:56 +0000 (15:49 -0400)
commit8225fbf27a1b5e3af70458fef406b9bc1f093911
tree8c1da320d652e26007e944e2dac97ebe9b951a9a
parentc3d0160a3d47d2858845caa3880abab3a6dae78a
lockd: fix nlm_close_files

This loop condition tries a bit too hard to be clever. Just test for
the two indices we care about explicitly.

Cc: J. Bruce Fields <bfields@fieldses.org>
Fixes: 649a9a0eb60a ("Keep read and write fds with each nlm_file")
Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/lockd/svcsubs.c