Project

General

Profile

Bug #14561

BlueStore: null pointer access

Added by xie xingguo almost 3 years ago. Updated almost 3 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
-
Target version:
-
Start date:
01/29/2016
Due date:
% Done:

0%

Source:
Community (dev)
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

Description

int BlueStore::_create_collection(
TransContext *txc,
coll_t cid,
unsigned bits,
CollectionRef *c) {
dout(15) << func << " " << cid << " bits " << bits << dendl;
int r;
bufferlist bl;

{
RWLock::WLocker l(coll_lock);
if (*c) {
r = -EEXIST;
goto out;
}
assert((*c)->exists);

The above assert caused null pointer access.

Associated revisions

Revision d3fd52aa (diff)
Added by xie xingguo almost 3 years ago

BlueStore: fix null pointer access

Fixes: #14561
Signed-off-by: xie xingguo <>

History

#1 Updated by Sage Weil almost 3 years ago

  • Status changed from New to Resolved

Also available in: Atom PDF