* [patch -next] autofs4: double lock typo in autofs4_write()
@ 2012-01-13 14:41 ` Dan Carpenter
0 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2012-01-13 14:41 UTC (permalink / raw)
To: Al Viro; +Cc: Ian Kent, autofs, linux-kernel, kernel-janitors
The second mutex_lock() should be an unlock.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
index 9ef5b29..da8876d 100644
--- a/fs/autofs4/waitq.c
+++ b/fs/autofs4/waitq.c
@@ -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);
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [patch -next] autofs4: double lock typo in autofs4_write()
@ 2012-01-13 14:41 ` Dan Carpenter
0 siblings, 0 replies; 4+ messages in thread
From: Dan Carpenter @ 2012-01-13 14:41 UTC (permalink / raw)
To: Al Viro; +Cc: Ian Kent, autofs, linux-kernel, kernel-janitors
The second mutex_lock() should be an unlock.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
diff --git a/fs/autofs4/waitq.c b/fs/autofs4/waitq.c
index 9ef5b29..da8876d 100644
--- a/fs/autofs4/waitq.c
+++ b/fs/autofs4/waitq.c
@@ -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);
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [patch -next] autofs4: double lock typo in autofs4_write()
2012-01-13 14:41 ` Dan Carpenter
@ 2012-01-13 15:25 ` Anca Emanuel
-1 siblings, 0 replies; 4+ messages in thread
From: Anca Emanuel @ 2012-01-13 15:25 UTC (permalink / raw)
To: Dan Carpenter; +Cc: Al Viro, Ian Kent, autofs, linux-kernel, kernel-janitors
Hi, this is already reported:
https://lkml.org/lkml/2012/1/13/104
and tested by Dave.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch -next] autofs4: double lock typo in autofs4_write()
@ 2012-01-13 15:25 ` Anca Emanuel
0 siblings, 0 replies; 4+ messages in thread
From: Anca Emanuel @ 2012-01-13 15:25 UTC (permalink / raw)
To: Dan Carpenter; +Cc: Al Viro, Ian Kent, autofs, linux-kernel, kernel-janitors
Hi, this is already reported:
https://lkml.org/lkml/2012/1/13/104
and tested by Dave.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-01-13 15:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-13 14:41 [patch -next] autofs4: double lock typo in autofs4_write() Dan Carpenter
2012-01-13 14:41 ` Dan Carpenter
2012-01-13 15:25 ` Anca Emanuel
2012-01-13 15:25 ` Anca Emanuel
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.