Project

General

Profile

Actions

Bug #14204

closed

NewStore: potential null pointer assignment

Added by xie xingguo over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
High
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

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

Description

See int NewStore::_truncate
OnodeRef o = c->get_onode(oid, false);
if (!o->exists) {
r = -ENOENT;
goto out;
}

Shall confirm the existence of o first.

Actions

Also available in: Atom PDF