Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759871AbXJLQCA (ORCPT ); Fri, 12 Oct 2007 12:02:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755291AbXJLQBk (ORCPT ); Fri, 12 Oct 2007 12:01:40 -0400 Received: from ns2.suse.de ([195.135.220.15]:53865 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754826AbXJLQBj (ORCPT ); Fri, 12 Oct 2007 12:01:39 -0400 Message-Id: <20071012155019.985151100@hasse.suse.de> References: <20071012155019.747515889@hasse.suse.de> User-Agent: quilt/0.46-62.1 Date: Fri, 12 Oct 2007 17:50:20 +0200 From: Jan Blunck To: Dave Hansen Cc: Linux-Kernel Mailinglist , Andrew Morton Subject: [patch 1/2] r/o bind mounts: Dont touch the vfsmount after path_put() Content-Disposition: inline; filename=vfs/r-o-af_unix-bind-mnt_drop_write-fix.diff Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 874 Lines: 30 mnt_drop_write() is called after releasing the reference to the path with path_put(). Signed-off-by: Jan Blunck --- net/unix/af_unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: b/net/unix/af_unix.c =================================================================== --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -752,8 +752,8 @@ static struct sock *unix_find_other(stru if (u->sk_type == type) touch_atime(nd.path.mnt, nd.path.dentry); - path_put(&nd.path); mnt_drop_write(nd.path.mnt); + path_put(&nd.path); err=-EPROTOTYPE; if (u->sk_type != type) { -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/