Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4848669pxj; Wed, 9 Jun 2021 03:27:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyS7wYKz76BPYGD505qa2YPSOEULy4e/hUGZhcMVzaW46e4wpBqdzl0Aht5M/wCEV2AV3da X-Received: by 2002:a17:907:7201:: with SMTP id dr1mr28109227ejc.19.1623234465450; Wed, 09 Jun 2021 03:27:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623234465; cv=none; d=google.com; s=arc-20160816; b=HAgBoYfvhASqHygByYW1mnbXBDpAxSOxVBr4kA+zsyIr/jrOY3vsh3GpsZ0S/xTXz/ rmjGVHaLzxJkJVQcuwfIsXFF+UbeBfGKFPLGGVkjJPjF0H846JsIatwUwKFhwlEY//HL R2oZLUWIxTVEU9Y/ooCeBz4gVwtY3yL9dWizx6Q30WLaGnPUK79LB+rsPfgDLdxuCHfM XLouOK/C8zRUR47Os7gb4p30wkAdwI9dh6AkUofAA+iipJfznp966USTi53r9vWjNCle wJSRmPke4LTfxjGRufqi40/aP2ArStRPKue28pR9MOVPkuyxfWfdrC8/rUKPgXnGf9Rj 71sg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0t4Qbxav9+LkjGKA70B3rtL+ySC707xrHnyWjVmjOZ0=; b=Jck8Ha0hYI/l0Gh9LVq0P3LPAIAkSJN5aIGJ6H9kJuU8ELtz9Vw+sceeJgR1Y2Tu/P u6JdiajHXEAjAVKstnjJyoP+Yvwrv4eknFsOC+YbzxCApmtafFkt2KHd2rIuR9QlM9XU NeYoIbZ9Ha+7vDfwwEaab12Hg3SJ6eCYSanCy6Qwu0KfAiN/zShYIxIuvckKbdPC46O3 7rt55fsHw/x55ecE8hsZXTURjsqU4CVDK/g6XMFZrfz16P0ICr8/4c1i6fz8PO0BVm8d Bb69c6kMtMdkIN1fNShm0qRpzUQjx9hXI+iZIEiyzVPw9mJ0t4Fxh+hy2smQxElQIpTO j9fA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=vQNwzLH6; 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=pass (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 t2si1971876ejf.594.2021.06.09.03.27.21; Wed, 09 Jun 2021 03:27:45 -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=@linuxfoundation.org header.s=korg header.b=vQNwzLH6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237127AbhFHS5Y (ORCPT + 99 others); Tue, 8 Jun 2021 14:57:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:49568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236289AbhFHSuV (ORCPT ); Tue, 8 Jun 2021 14:50:21 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id EEF0261467; Tue, 8 Jun 2021 18:39:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177575; bh=SR7TwnqRT9aOFTBruccWbgoF5gRaRBe/+emlZzBKv+4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vQNwzLH6ibltPuMVLfP6t/2gfbBGm3ZdLRm57Qi9BUyLK1zcs+CtCkELuGeniIVQo Ygq1+jRDpfB2tovziGBm+kMwXb8vt+hVJccdEXsV1OvspdAAWUp3n5V7VpTEDjtSTo +zSW1m/ZEVXMgigyTdRj8eqlDmzAF8vsTriFs1qw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Westphal , Pablo Neira Ayuso , Sasha Levin Subject: [PATCH 5.10 005/137] netfilter: conntrack: unregister ipv4 sockopts on error unwind Date: Tue, 8 Jun 2021 20:25:45 +0200 Message-Id: <20210608175942.559938626@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175942.377073879@linuxfoundation.org> References: <20210608175942.377073879@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Florian Westphal [ Upstream commit 22cbdbcfb61acc78d5fc21ebb13ccc0d7e29f793 ] When ipv6 sockopt register fails, the ipv4 one needs to be removed. Fixes: a0ae2562c6c ("netfilter: conntrack: remove l3proto abstraction") Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso Signed-off-by: Sasha Levin --- net/netfilter/nf_conntrack_proto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/netfilter/nf_conntrack_proto.c b/net/netfilter/nf_conntrack_proto.c index 47e9319d2cf3..71892822bbf5 100644 --- a/net/netfilter/nf_conntrack_proto.c +++ b/net/netfilter/nf_conntrack_proto.c @@ -660,7 +660,7 @@ int nf_conntrack_proto_init(void) #if IS_ENABLED(CONFIG_IPV6) cleanup_sockopt: - nf_unregister_sockopt(&so_getorigdst6); + nf_unregister_sockopt(&so_getorigdst); #endif return ret; } -- 2.30.2