ceph/ceph — pull request #2681 by gregsfortytwo (2014-10-09 22:19:00+00:00)
Title: mds: Locker: fix a NULL deref in _update_cap_fields

The MClientCaps* is allowed to be NULL, so we can't deref it unless
the dirty param is non-zero. So don't do the ahead-of-time lookup;
just call it explicitly in the if block.

Signed-off-by: Greg Farnum
(cherry picked from commit 3cd8a7fb9683577a7d6e934f18c29b7e84415be6)