Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1843827pxb; Mon, 13 Sep 2021 06:46:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwveSkiU55Ce5Tr1LiVRZj0Z9w31J7DZxWtvFsGXMVZq2x9n6V6E2UgY6thV50Ahjixr2B4 X-Received: by 2002:a05:6638:140f:: with SMTP id k15mr5563783jad.113.1631540814855; Mon, 13 Sep 2021 06:46:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631540814; cv=none; d=google.com; s=arc-20160816; b=HvcqHoXeJM/UDHXnWjzyayjm+SdTD/yy0RZtvUCwPmnjBog9hq5Ja7GE5XpRRIa/bu 7qllwdKMTWfkjasGimqJgCYAQWPZ/iMTMbuaWexxGR9ygJVmukgFvdgVr9weeWnEFcAX euW4F056x3oCGs8108xev1oEfmO1EmnF1b/9pZe2xFaBe5kuipQbgxzymgAHOtHl4wUB DsBKcei7QiSOZjhy+f0IYEvb8sJD4VJIKhriC0dIEh8qJOSDDNzpSEQguJkA521KQaOj NW//1e0z1tLl0awRZgUWSzEkb547BLmYekFpRPxwKPrrlshNTBvd91dAfZcTOA92TX8C TwlQ== 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=Utfyf1AhO1YJWaTakB/iJ+0YZfGmfWhKqmZV9/JXTHM=; b=jwkQ5QyTewxIkxa25EYL/fW0CXzKp8twFQ97XhUl2Z8v9aK5kjQApAJam/uapHeklh g8ylv6jnF/V63wURNWCExE9M2S/zB+9KAJmUcElIBfEVjPl8hmXk29kbl7f2ubiVzXZF AvETEL+DRAwEwAcj8jn+Euqi4iZ5jxsBFk9tzbwfLZ+wxhKnGygYuJhheznk6jnQs2XS M4ITcYaftfPlTfd6mkigZjduDEOs3cCZX2ltzttL9ONhrG8zhmuUix6Jg8r0+FWQ1+HK ehs/fIT5RumNcjmolkzxTyQR6T6TFcXckesYuzswjutytkSlm5XAPjLksjzXPLJZU8dg jqbQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0sMW1PWF; 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 x4si6142129ilj.121.2021.09.13.06.46.42; Mon, 13 Sep 2021 06:46:54 -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=0sMW1PWF; 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 S243779AbhIMNoz (ORCPT + 99 others); Mon, 13 Sep 2021 09:44:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:37682 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243773AbhIMNkC (ORCPT ); Mon, 13 Sep 2021 09:40:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 64BEB613D0; Mon, 13 Sep 2021 13:29:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631539743; bh=4P/Xn1DnjqKP9xd6VekwHbpURR/81v4zgEN7zMUvHJg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0sMW1PWFGbe42FaF/S+KRdhppPX4O6LIHVHrCvp/EDSlnfeldSgWlgC6VJfN8VBWH oaMXzFFtF0hd1Q0fYKi0EU7jh248yT+nSSPY/V01xwlYkpm/TTsq/+e7BChlSpuNq0 T/WanhyLez/70PSjewwXEdZmF0TsczHaJJPEKVmE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Parav Pandit , Jiri Pirko , Leon Romanovsky , "David S. Miller" , Sasha Levin Subject: [PATCH 5.10 144/236] net/mlx5: Fix unpublish devlink parameters Date: Mon, 13 Sep 2021 15:14:09 +0200 Message-Id: <20210913131105.263321966@linuxfoundation.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210913131100.316353015@linuxfoundation.org> References: <20210913131100.316353015@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: Parav Pandit [ Upstream commit 6f35723864b42ec9e9bb95a503449633395c4975 ] Cleanup routine missed to unpublish the parameters. Add it. Fixes: e890acd5ff18 ("net/mlx5: Add devlink flow_steering_mode parameter") Signed-off-by: Parav Pandit Reviewed-by: Jiri Pirko Reviewed-by: Leon Romanovsky Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/mellanox/mlx5/core/devlink.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/devlink.c b/drivers/net/ethernet/mellanox/mlx5/core/devlink.c index 2c7f2eff1e17..4cba110f6ef8 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/devlink.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/devlink.c @@ -450,6 +450,7 @@ params_reg_err: void mlx5_devlink_unregister(struct devlink *devlink) { mlx5_devlink_traps_unregister(devlink); + devlink_params_unpublish(devlink); devlink_params_unregister(devlink, mlx5_devlink_params, ARRAY_SIZE(mlx5_devlink_params)); devlink_unregister(devlink); -- 2.30.2