Actions
Bug #5184
closedlibceph: create_singlethread_workqueue() error handling
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