mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tapasweni Pathak <tapaswenipathak@gmail.com>
To: viro@zeniv.linux.org.uk, akpm@linux-foundation.org,
	tglx@linutronix.de, ionut.m.alexa@gmail.com,
	paulmcquad@gmail.com, linux-kernel@vger.kernel.org
Cc: tapaswenipathak@gmail.com
Subject: [PATCH] kernel: Unlock after locking
Date: Tue, 3 Mar 2015 08:49:10 +0530	[thread overview]
Message-ID: <20150303031910.GA25670@kt-Inspiron-3542> (raw)

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


             reply	other threads:[~2015-03-03  3:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03  3:19 Tapasweni Pathak [this message]
2015-03-03  4:15 ` David Rientjes
2015-03-03  6:41 ` Al Viro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150303031910.GA25670@kt-Inspiron-3542 \
    --to=tapaswenipathak@gmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=ionut.m.alexa@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=paulmcquad@gmail.com \
    --cc=tglx@linutronix.de \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®