]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
autofs: fix careless error in recent commit
authorNeilBrown <neilb@suse.com>
Thu, 14 Dec 2017 23:32:38 +0000 (15:32 -0800)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Tue, 13 Mar 2018 10:27:49 +0000 (11:27 +0100)
commit3ac3d36caa84aef3da41905a38b647c483641984
tree81f6dfcf01eb27e499916cdf9ba3118aa5f2415e
parent76b3ad230c060d8117fb378c414cf068d310ed55
autofs: fix careless error in recent commit

BugLink: http://bugs.launchpad.net/bugs/1745052
commit 302ec300ef8a545a7fc7f667e5fd743b091c2eeb upstream.

Commit ecc0c469f277 ("autofs: don't fail mount for transient error") was
meant to replace an 'if' with a 'switch', but instead added the 'switch'
leaving the case in place.

Link: http://lkml.kernel.org/r/87zi6wstmw.fsf@notabene.neil.brown.name
Fixes: ecc0c469f277 ("autofs: don't fail mount for transient error")
Reported-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: NeilBrown <neilb@suse.com>
Cc: Ian Kent <raven@themaw.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
fs/autofs4/waitq.c