Skip to content

Commit

Permalink
SQUASH: handle NULL m pointer in _update_cap_fields
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Layton <jlayton@redhat.com>
  • Loading branch information
jtlayton committed Nov 7, 2016
1 parent 386b64d commit 2606db0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mds/Locker.cc
Expand Up @@ -2999,7 +2999,7 @@ void Locker::_do_snap_update(CInode *in, snapid_t snap, int dirty, snapid_t foll
*/
void Locker::_update_cap_fields(CInode *in, int dirty, MClientCaps *m, inode_t *pi)
{
uint64_t features = m->get_connection()->get_features();
uint64_t features = dirty ? m->get_connection()->get_features() : 0;

if (dirty && m->get_ctime() > pi->ctime) {
dout(7) << " ctime " << pi->ctime << " -> " << m->get_ctime()
Expand Down

0 comments on commit 2606db0

Please sign in to comment.