autofs: don't get stuck in a loop if vfs_write() returns an error
authorAndrey Vagin <avagin@openvz.org>
Fri, 24 Jun 2016 21:50:27 +0000 (14:50 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 25 Jun 2016 00:23:52 +0000 (17:23 -0700)
commit5a9294e5c535deab69831076af15cd35e1c95f8b
treea13064c643cfc7e5ea8af20fdb20d971f67329f4
parent8285027fc479949a7a166bc1b26ce57e894878a7
autofs: don't get stuck in a loop if vfs_write() returns an error

__vfs_write() returns a negative value in a error case.

Link: http://lkml.kernel.org/r/20160616083108.6278.65815.stgit@pluto.themaw.net
Signed-off-by: Andrey Vagin <avagin@openvz.org>
Signed-off-by: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/autofs4/waitq.c