Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1259249pxa; Thu, 20 Aug 2020 06:59:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7YRNZinm5ybfZ8/2vT6o+N0HRo5UqgbrzW2vARIXwnEWaQfT7lKvk2JKazIsHzybGdh20 X-Received: by 2002:a50:ba85:: with SMTP id x5mr2910928ede.38.1597931984617; Thu, 20 Aug 2020 06:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597931984; cv=none; d=google.com; s=arc-20160816; b=CuXZ2vmHTc3UWLUDSxEfIlCLFMUzQrx1F6fhLSV8gVKdL2tElOfR7vXjO+S2a+Zdsy pf0zt/R4x8HdWbPakMBVopfDvBwda+2vVietfHjqrVt0kP53SHsFvAb30RSld/pb9kaD DgRNexDiGwCZGv7hp+7ExEt56wHHFCDCKDn52cfpsyRNIrfxW5HCj6x1mccPue6DrmWX E1D5i8WcvhnNIRElA4xnbDbx8Qu9sw5h2Ik1jo8mRKc6MVncNRW6bpozkfCb31oFkd6q vyISDnw9BuWq6hxtGweOAvylqY20E6IRpSOzv5d6dP5MAArGU05n/zDSOSGrTu6gVvYE wOCQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=irT/N1yOS2RUFKvpQ+V7xa0rWwlPC/ItFSCkLAELCbE=; b=DcrZyhWwfOOiVQlDh3nxDDCKvgfOxQVMuarFU9Y6wTmNNBFa3or7c3sXUZzptvV2lz qmAUmL/xVHaspvySb0awOVW4iXOvZck+VaTe8efsaMkf0XVZmjlfotJ1Coegm3JdW9Yr wjGcjEbEkrzJ7srK2nMzS6STvHLx5uHGs1J699pG0j+7BAoQRA/dDXg8gqZAybP350bt k74FGM5H9p0YgC90bjATKQUB5GYPEPt35ikxUHzfvdte1SLpG1QhJZT3BJLfQET1/0dZ VzQYeS4MfnyckJlyiWMGPXxgqOqBDpVGUYqP4x9GgZDi3fC5l8B1nznwmqa4Yg8+Yu/t 3QLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mycbaZb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n1si1276413eju.121.2020.08.20.06.59.17; Thu, 20 Aug 2020 06:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=mycbaZb1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730667AbgHTNzE (ORCPT + 99 others); Thu, 20 Aug 2020 09:55:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:35816 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727906AbgHTJ0l (ORCPT ); Thu, 20 Aug 2020 05:26:41 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C969022CE3; Thu, 20 Aug 2020 09:26:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597915600; bh=dLN8VAA5iPGBkW4opW8cjquNH5m79Hk8dZeExUXHUBY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mycbaZb1Xb8vdGovidZZfJsgRljAZGF0UkiNjAtYyc3Glyu2J8p79sMhjERHfrF9v shQwGfn/7cPnRkkG8a0o0ZzFT2q/IO9t9t4iHC+Pwa9dGnrKmYWVEQQ/17RsNdH4CI taMP30WjyUIBysOIrhIvXzdIOxEvn9FRe7sryvPM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christopher KOBAYASHI , Doug Brown , Vincent Duvert , Lukas Wunner , Yue Haibing , "David S. Miller" Subject: [PATCH 5.8 071/232] appletalk: Fix atalk_proc_init() return path Date: Thu, 20 Aug 2020 11:18:42 +0200 Message-Id: <20200820091616.241259112@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200820091612.692383444@linuxfoundation.org> References: <20200820091612.692383444@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Vincent Duvert commit d0f6ba2ef2c1c95069509e71402e7d6d43452512 upstream. Add a missing return statement to atalk_proc_init so it doesn't return -ENOMEM when successful. This allows the appletalk module to load properly. Fixes: e2bcd8b0ce6e ("appletalk: use remove_proc_subtree to simplify procfs code") Link: https://www.downtowndougbrown.com/2020/08/hacking-up-a-fix-for-the-broken-appletalk-kernel-module-in-linux-5-1-and-newer/ Reported-by: Christopher KOBAYASHI Reported-by: Doug Brown Signed-off-by: Vincent Duvert [lukas: add missing tags] Signed-off-by: Lukas Wunner Cc: stable@vger.kernel.org # v5.1+ Cc: Yue Haibing Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/appletalk/atalk_proc.c | 2 ++ 1 file changed, 2 insertions(+) --- a/net/appletalk/atalk_proc.c +++ b/net/appletalk/atalk_proc.c @@ -229,6 +229,8 @@ int __init atalk_proc_init(void) sizeof(struct aarp_iter_state), NULL)) goto out; + return 0; + out: remove_proc_subtree("atalk", init_net.proc_net); return -ENOMEM;