[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Mon, 2 Mar 2015 20:15:47 -0800 (PST)
From: David Rientjes <rientjes@...gle.com>
To: Tapasweni Pathak <tapaswenipathak@...il.com>
cc: viro@...iv.linux.org.uk, akpm@...ux-foundation.org,
tglx@...utronix.de, ionut.m.alexa@...il.com, paulmcquad@...il.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] kernel: Unlock after locking
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists