From: Tomohiro Kusumi Date: Sat, 16 May 2015 01:10:57 +0000 (+0900) Subject: Add missing fio_mutex_up() on return X-Git-Tag: fio-2.2.9~34^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=8db1ff2a5ecb5c766c07a801f9bab2e482e674a1;p=fio.git Add missing fio_mutex_up() on return Call fio_mutex_up() before returning from this function. --- 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;