Linux/linux 28a2826fs/ceph locks.c

ceph: don't try fill file_lock on unsuccessful GETFILELOCK reply

When ceph_mdsc_do_request returns an error, we can't assume that the
filelock_reply pointer will be set. Only try to fetch fields out of
the r_reply_info when it returns success.

Cc: stable at vger.kernel.org
Reported-by: Hector Martin <hector at marcansoft.com>
Signed-off-by: Jeff Layton <jlayton at kernel.org>
Reviewed-by: "Yan, Zheng" <zyan at redhat.com>
Signed-off-by: Ilya Dryomov <idryomov at gmail.com>
DeltaFile
+1-2fs/ceph/locks.c
+1-21 files

UnifiedSplitRaw