]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: potential null pointer dereference when requesting exclusive lock 10980/head
authorMykola Golub <mgolub@mirantis.com>
Tue, 27 Sep 2016 13:43:50 +0000 (16:43 +0300)
committerMykola Golub <mgolub@mirantis.com>
Wed, 28 Sep 2016 12:17:19 +0000 (15:17 +0300)
commitf99dbbd153c208351e9ffa3adea02815362cf0b6
tree03e0ab23f55205aa0529dde6143ea1a4fdb7b4df
parentac71dbca3ed3e3b249c03b7cfc0698f88a7692bc
librbd: potential null pointer dereference when requesting exclusive lock

m_require_lock_on_read should be cleared when holding owner_lock.

For safety, also check that exclusive_lock is not null.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
src/librbd/AioImageRequestWQ.cc
src/librbd/ExclusiveLock.cc