Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4829625pxj; Wed, 9 Jun 2021 02:56:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyg1DXIcxsy2Ss8aOXNuYopiFrdomAsI5S+OlokjwAXIo865pMItmJEywKq3CATXJ8c62I4 X-Received: by 2002:a92:4a02:: with SMTP id m2mr16648237ilf.171.1623232618550; Wed, 09 Jun 2021 02:56:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623232618; cv=none; d=google.com; s=arc-20160816; b=XetWyanC+dQpAP9KY8x4FKpO4W0cXy9bBtuSyCn0/jKJjwHF+Jwt7egZnuBn8uiia+ w/7N+OvONBwR8HOJebCsMvvt3+hbfp5PgduAstu88qFa0nMWAb/3b4oc1w1SwOKsTAMZ fd0gvoAK31/yya3u0MnmYtf/cBttNFPviDiGmjSwkmJTAB6ue1bB0i8ivWbvhEstaRr4 ELtydYxO/yWLJW12Awc8J9YOh3y1T8W9O3F9xou8OWZCbiI5RSVQmBLfRPA965o0kgzu X5YifTXjoyKLBl4q5Si29i17AzA/AcgHDr+hS/npIJEUjZy1CMCtCvYf+Z338XkfRlJQ vJPg== 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=R30AJrBHjHaTpJCTIbYlSqqNoPy5p9XppzXPGNQw5bs=; b=0DiNWyLqduPrD8xatZVTNZRFpR5AGzgaxOj80/SN3HErxkDKNujX3zJrdKa5mXu7P4 TzRVKRgtT1F1xGn53jq/79904YNlb3QNO2JpzugPqyeN2F+qsm3VROZ1zGgEBAP6aZL8 M8hoOkb0JOp+HpGaDAHdeU9j/MDyzp2A1XH1icWEAyZSTm6mmssyYQsLCWgZzAUBwFZk kgCQDztqw7recLyDY1ARZ4FcR4Fp84TpMmnZFw5Faek/omi/sWdwRE8Dl5qgo9bmjCnI jua0d20IDAc1zo0sb7XnYqT9jJG4dGyryY/6kVtiTE3Lnrzmz3YTXtt96zqVT+hZkttb 6yTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rJFoJGKK; 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 u16si3070794jat.121.2021.06.09.02.56.46; Wed, 09 Jun 2021 02:56:58 -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=rJFoJGKK; 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 S235914AbhFHStc (ORCPT + 99 others); Tue, 8 Jun 2021 14:49:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:43672 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235245AbhFHSoM (ORCPT ); Tue, 8 Jun 2021 14:44:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8363F61451; Tue, 8 Jun 2021 18:36:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623177394; bh=bzWsk3v5m+fHHsjzPgFotD73dnM61etbWCZJa3TE6r4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rJFoJGKKQ/VUb8cE7bxFWMn6tIBrdbY4aH9J+HaM1Akhm48AokaJ+/ga+nD4Lbe1e +wrljYvjHxe3G/+IB+dV9EceqmXuF4veiBk2J4O1dmZbLZM56xMVC7Qo9a9seEOHYv uQ1WYwa+LCGVK4Ot3jU8cv0ap2VzQ/PvO62qdlrs= 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.4 06/78] netfilter: conntrack: unregister ipv4 sockopts on error unwind Date: Tue, 8 Jun 2021 20:26:35 +0200 Message-Id: <20210608175935.483904814@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210608175935.254388043@linuxfoundation.org> References: <20210608175935.254388043@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 aaf4293ddd45..75e6b429635d 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