Received: by 10.223.185.116 with SMTP id b49csp823113wrg; Sat, 10 Feb 2018 21:13:36 -0800 (PST) X-Google-Smtp-Source: AH8x225Z6o1XWGR4/0yP8RllB5+oxZfaXAs/7b5AATtkKGMlvl+OOomU1r3QGL+Dx+MtHC/vIwNR X-Received: by 2002:a17:902:aa88:: with SMTP id d8-v6mr7121906plr.171.1518326016703; Sat, 10 Feb 2018 21:13:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518326016; cv=none; d=google.com; s=arc-20160816; b=Nckn76j95BVSzePGRW+rWn9Rvky9eHYHJiMNS7fQpmgDwnJxtEVp0kHblAL7da0seH JmFNykQmmwRw448lcZDwMfs37AVm3RPS5JcB2TkZQhxNPa6C4i8igcHft8Kk6vZcOoL8 kNqBoG6wd5p4oj+e3cXq7dpIWbrs4TfbjLWu2ucOTm3X8V2W2S4QRM7khWIT0VOs/xib 0IR0F+/Cgwqjs1oU+Z7ZkFbuy3Lr6TIaTDE4IoizESnTRyRGWIiKLkorMYPUdkqir/vf yjffETBy5M/gyWF8LbQ0XKN823TvB/JN6KurCSmnysRHeSJH60JztyU2Tc3aNEy7ZGvd uWDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:subject:message-id:date:cc:to :from:mime-version:content-transfer-encoding:content-disposition :arc-authentication-results; bh=66jE1+rBH/UnOKUQPHqaV5c7hpFUc028rx15Tloyl0M=; b=N5phAkChVbNDbfOA9x/PKjZPvClD72CEZfOUfoNCzpiNGPG7olRIMJBWxH5LovUBJF nxC2+wForCW9m5lzOL02kx8r1IuMhqH9GvWwG/u4aDWXkveig0N1JWBrI+MfMnaJhc6G J1fEVTtIsuFpmj5R1yXzfkAoDhRu8YwL6gcVF5jnszZ19Lh6Po/gL8zltBPSS2Pe/77E R4i0LnVJKoXAIydE9ozJRr0F9rEO8XiHTmbzYkpTLfQJcDM1SBhTDNBKxYIhFHBcNlIp Z8/4xbKd9ehEjDbng1ubjDAbhlY73jCYOKS9dgb6GLGumkxNOEqk4fYVicckAld7Sw2Y dD2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y12si2774339pgv.267.2018.02.10.21.13.23; Sat, 10 Feb 2018 21:13:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754029AbeBKFMf (ORCPT + 99 others); Sun, 11 Feb 2018 00:12:35 -0500 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:41406 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752622AbeBKEdl (ORCPT ); Sat, 10 Feb 2018 23:33:41 -0500 Received: from [2a02:8011:400e:2:6f00:88c8:c921:d332] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ekjKd-0002hF-LW; Sun, 11 Feb 2018 04:33:39 +0000 Received: from ben by deadeye with local (Exim 4.90) (envelope-from ) id 1ekjKY-0004Vc-D5; Sun, 11 Feb 2018 04:33:34 +0000 Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 From: Ben Hutchings To: linux-kernel@vger.kernel.org, stable@vger.kernel.org CC: akpm@linux-foundation.org, "NeilBrown" , "Ben Hutchings" , "Linus Torvalds" , "Ian Kent" Date: Sun, 11 Feb 2018 04:20:06 +0000 Message-ID: X-Mailer: LinuxStableQueue (scripts by bwh) Subject: [PATCH 3.2 52/79] autofs: fix careless error in recent commit In-Reply-To: X-SA-Exim-Connect-IP: 2a02:8011:400e:2:6f00:88c8:c921:d332 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 3.2.99-rc1 review patch. If anyone has any objections, please let me know. ------------------ From: NeilBrown 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 Signed-off-by: NeilBrown Cc: Ian Kent Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds [bwh: Backported to 3.2: autofs4_write() doesn't take an autofs_sb_info pointer] Signed-off-by: Ben Hutchings --- fs/autofs4/waitq.c | 1 - 1 file changed, 1 deletion(-) --- a/fs/autofs4/waitq.c +++ b/fs/autofs4/waitq.c @@ -181,7 +181,6 @@ static void autofs4_notify_daemon(struct mutex_unlock(&sbi->wq_mutex); - if (autofs4_write(pipe, &pkt, pktsz)) switch (ret = autofs4_write(pipe, &pkt, pktsz)) { case 0: break;