diff mbox

[V9fs-developer] fix double unlock bug

Message ID alpine.DEB.2.00.0911162335580.25436@bicker (mailing list archive)
State Superseded, archived
Delegated to: Eric Van Hensbergen
Headers show

Commit Message

Dan Carpenter Nov. 18, 2009, 8:28 a.m. UTC
None
diff mbox

Patch

--- orig/fs/9p/vfs_dir.c	2009-11-16 23:30:12.000000000 +0200
+++ devel/fs/9p/vfs_dir.c	2009-11-16 23:33:23.000000000 +0200
@@ -121,6 +121,8 @@ 
 	rdir = (struct p9_rdir *) fid->rdir;
 
 	err = mutex_lock_interruptible(&rdir->mutex);
+	if (err)
+		return err;
 	while (err == 0) {
 		if (rdir->tail == rdir->head) {
 			err = v9fs_file_readn(filp, rdir->buf, NULL,