Skip to contentSkip to conversation

autofs4: double lock typo in autofs4_write()

PATCH In review Dan Carpenter 2 participants 2 messages Jan 13, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 autofs4: double lock typo in autofs4_write()

The second mutex_lock() should be an unlock.

fs/autofs4/waitq.c +1 -1
index 9ef5b29..da8876d 100644
@@ -76,7 +76,7 @@ static int autofs4_write(struct autofs_sb_info *sbi,
 		data += wr;
 		bytes -= wr;
 	}
-	mutex_lock(&sbi->pipe_mutex);
+	mutex_unlock(&sbi->pipe_mutex);
 
 	set_fs(fs);