Home
last modified time | relevance | path

Searched hist:cd2d644d (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/lockd/
H A Dsvclock.ccd2d644d Mon Jul 26 08:33:28 CDT 2021 Benjamin Coddington <bcodding@redhat.com> lockd: Fix invalid lockowner cast after vfs_test_lock

After calling vfs_test_lock() the pointer to a conflicting lock can be
returned, and that lock is not guarunteed to be owned by nlm. In that
case, we cannot cast it to struct nlm_lockowner. Instead return the pid
of that conflicting lock.

Fixes: 646d73e91b42 ("lockd: Show pid of lockd for remote locks")
Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>