OSDN Git Service

Add a missing MUTEX_RELEASE() in ril_event_del
authorAxel Lin <axel.lin@gmail.com>
Wed, 29 Dec 2010 07:34:56 +0000 (15:34 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 15 Apr 2011 10:24:31 +0000 (18:24 +0800)
In the case of (ev->index < 0 || ev->index >= MAX_FD_EVENTS),
we must call MUTEX_RELEASE() before return.

Change-Id: Ic0b21a8e1fbc940c4bfcc1fc8b606536e2484c71

libril/ril_event.cpp

index e40e72b..4a4b330 100644 (file)
@@ -319,6 +319,7 @@ void ril_event_del(struct ril_event * ev)
     MUTEX_ACQUIRE();
 
     if (ev->index < 0 || ev->index >= MAX_FD_EVENTS) {
+        MUTEX_RELEASE();
         return;
     }