linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -mm] Unionfs: Fix lock leak in unionfs_ioctl
@ 2007-06-04  2:17 Josef 'Jeff' Sipek
  0 siblings, 0 replies; only message in thread
From: Josef 'Jeff' Sipek @ 2007-06-04  2:17 UTC (permalink / raw)
  To: linux-kernel, linux-fsdevel; +Cc: akpm, Josef 'Jeff' Sipek

(This patch is already in the Unionfs git tree. This is just a heads up.)

Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu>
---
 fs/unionfs/commonfops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/unionfs/commonfops.c b/fs/unionfs/commonfops.c
index 83001aa..1045e51 100644
--- a/fs/unionfs/commonfops.c
+++ b/fs/unionfs/commonfops.c
@@ -635,7 +635,6 @@ static long do_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 	}
 
 out:
-	unionfs_read_unlock(file->f_dentry->d_sb);
 	return err;
 }
 
@@ -709,6 +708,7 @@ long unionfs_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 	}
 
 out:
+	unionfs_read_unlock(file->f_dentry->d_sb);
 	return err;
 }
 
-- 
1.5.2.rc1.165.gaf9b


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-06-04  2:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-04  2:17 [PATCH -mm] Unionfs: Fix lock leak in unionfs_ioctl Josef 'Jeff' Sipek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).