Release lock before returning.

Signed-off-by: Tapasweni Pathak <[email protected]>
---
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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to