lkml.org 
[lkml]   [2015]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] kernel: Unlock after locking
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


\
 
 \ /
  Last update: 2015-03-03 05:01    [W:0.084 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site