commit | d5b351d483aabb0d0a0acd2930640428aa8e6339 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Tue Apr 15 08:25:16 2014 -0600 |
committer | Jens Axboe <axboe@fb.com> | Tue Apr 15 08:25:16 2014 -0600 |
tree | 6febfbc15ef1e2e8a1783580c02b0867258e9f61 | |
parent | fbfebdb2e1266245700010c94b1fd29794f87955 [diff] [blame] |
idletime: fix another missing unlock on error Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/idletime.c b/idletime.c index 8d23154..a366d2b 100644 --- a/idletime.c +++ b/idletime.c
@@ -73,8 +73,10 @@ pthread_mutex_lock(&ipt->init_lock); /* exit if any other thread failed to start */ - if (ipc.status == IDLE_PROF_STATUS_ABORT) + if (ipc.status == IDLE_PROF_STATUS_ABORT) { + pthread_mutex_unlock(&ipt->init_lock); return NULL; + } retval = set_cpu_affinity(ipt); if (retval == -1) {