From: Avner BenHanoch Date: Wed, 30 Mar 2016 14:38:07 +0000 (+0300) Subject: xio: fix invalid access to member pointer before it is being initialized X-Git-Tag: v10.2.0~22^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bde87d3a6341185c35aa3b02b7249f6c66228d32;p=ceph.git xio: fix invalid access to member pointer before it is being initialized Signed-off-by: Avner BenHanoch --- diff --git a/src/common/buffer.cc b/src/common/buffer.cc index ae1ffbe4b3f3..0fdae6328b6b 100644 --- a/src/common/buffer.cc +++ b/src/common/buffer.cc @@ -659,7 +659,7 @@ static simple_spinlock_t buffer_debug_lock = SIMPLE_SPINLOCK_INITIALIZER; public: struct xio_reg_mem *mp; xio_mempool(struct xio_reg_mem *_mp, unsigned l) : - raw((char*)mp->addr, l), mp(_mp) + raw((char*)_mp->addr, l), mp(_mp) { } ~xio_mempool() {} raw* clone_empty() {