public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel: Unlock after locking
@ 2015-03-03  3:19 Tapasweni Pathak
  2015-03-03  4:15 ` David Rientjes
  2015-03-03  6:41 ` Al Viro
  0 siblings, 2 replies; 3+ messages in thread
From: Tapasweni Pathak @ 2015-03-03  3:19 UTC (permalink / raw)
  To: viro, akpm, tglx, ionut.m.alexa, paulmcquad, linux-kernel; +Cc: tapaswenipathak

Release lock before returning.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
---
I'm not sure if this is a bug, it seems like it is intentional, but
there is no comment or anything like that which confirms this.

 kernel/acct.c |    1 +
 1 file changed, 1 insertion(+)

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;
 }

--
1.7.9.5


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-03  6:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-03  3:19 [PATCH] kernel: Unlock after locking Tapasweni Pathak
2015-03-03  4:15 ` David Rientjes
2015-03-03  6:41 ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox