Bug 51032

Summary: lock not released on error in dbus_pending_call_set_notify
Product: dbus Reporter: Dmitry <dm.leontiev7>
Component: coreAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium CC: hp, smcv
Version: unspecifiedKeywords: patch
Hardware: All   
OS: All   
Whiteboard: review+
i915 platform: i915 features:
Attachments: dbus_pending_call_set_notify: don't leave the connection locked on OOM

Description Dmitry 2012-06-13 04:46:03 UTC
in body of dbus_pending_call_set_notify:

CONNECTION_LOCK (pending->connection);
if (!foo(...))return FALSE;
CONNECTION_UNLOCK (pending->connection);

this is an obvious bug
Comment 1 Dmitry 2012-06-13 07:36:36 UTC
version: 1.6
Comment 2 Simon McVittie 2012-06-13 07:59:36 UTC
That does look suspicious.

I'd welcome a patch, if you want to get this fixed sooner (or if not, someone will get round to it eventually).
Comment 3 Simon McVittie 2012-06-25 04:21:28 UTC
Created attachment 63430 [details] [review]
dbus_pending_call_set_notify: don't leave the connection  locked on OOM
Comment 4 Lennart Poettering 2012-06-25 07:05:43 UTC
Looks good to me.
Comment 5 Simon McVittie 2012-07-03 12:13:19 UTC
Fixed in 1.6.2

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.