From 8db1ff2a5ecb5c766c07a801f9bab2e482e674a1 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Sat, 16 May 2015 10:10:57 +0900 Subject: [PATCH] Add missing fio_mutex_up() on return Call fio_mutex_up() before returning from this function. --- flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/flow.c b/flow.c index f9d868d8..e0ac1352 100644 --- a/flow.c +++ b/flow.c @@ -59,6 +59,7 @@ static struct fio_flow *flow_get(unsigned int id) flow = smalloc(sizeof(*flow)); if (!flow) { log_err("fio: smalloc pool exhausted\n"); + fio_mutex_up(flow_lock); return NULL; } flow->refs = 0; -- 2.25.1