Skip to contentSkip to conversation

Unionfs: Fix lock leak in unionfs_ioctl

PATCH New Josef 'Jeff' Sipek 1 participant 1 message Jun 4, 2007 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Unionfs: Fix lock leak in unionfs_ioctl

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

---
 fs/unionfs/commonfops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/unionfs/commonfops.c +1 -1
index 83001aa..1045e51 100644
@@ -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;
 }
 
Signature · 1 line
1.5.2.rc1.165.gaf9b