]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mds/Locker.cc: fix dereference after null check
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 31 May 2013 16:49:30 +0000 (18:49 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Fri, 31 May 2013 17:15:22 +0000 (19:15 +0200)
commit59cffbabcffa2c55acf43eb604d42c7a24d405c3
treeba0e3afdf16d29cfb71abab8d9801e6f11083547
parent3969c695d947eb4a41928710503c82beaaf58e43
mds/Locker.cc: fix dereference after null check

CID 716919 (#1 of 1): Dereference after null check (FORWARD_NULL)
  var_deref_model: Passing null pointer "cap" to function
  "Capability::inc_suppress()", which dereferences it.

Check for 'cap' before use it as in other places of the function.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mds/Locker.cc