Project

General

Profile

Actions

Bug #5184

closed

libceph: create_singlethread_workqueue() error handling

Added by Alex Elder almost 11 years ago. Updated over 10 years ago.

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

0%

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

Description

In ceph_osdc_init() there are these lines of code:

        osdc->notify_wq = create_singlethread_workqueue("ceph-watch-notify");
        if (IS_ERR(osdc->notify_wq)) {

The problem is that create_singlethread_workqueue() returns a
null pointer on error, not a pointer-coded error. And I believe
IS_ERR() returns false for a null pointer.

Actions

Also available in: Atom PDF