Re: [PATCH] kernel: Unlock after locking

From: David Rientjes
Date: Mon Mar 02 2015 - 23:15:54 EST


On Tue, 3 Mar 2015, Tapasweni Pathak wrote:

> diff --git a/kernel/acct.c b/kernel/acct.c
> index e6c10d1a..f592218 100644
> --- a/kernel/acct.c
> +++ b/kernel/acct.c
> @@ -161,6 +161,7 @@ again:
> acct_put(res);
> goto again;
> }
> + mutex_unlock(&res->lock);
> return res;
> }
>

This function returns with the mutex held, the caller releases it.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/