lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 3 Mar 2015 08:49:10 +0530
From:	Tapasweni Pathak <tapaswenipathak@...il.com>
To:	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
Cc:	tapaswenipathak@...il.com
Subject: [PATCH] kernel: Unlock after locking

Release lock before returning.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@...il.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

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

Powered by Openwall GNU/*/Linux Powered by OpenVZ