Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp3695047ybx; Mon, 4 Nov 2019 01:11:51 -0800 (PST) X-Google-Smtp-Source: APXvYqw4YN/aGmBggpAmRGzvtrChE5RsxuGH/yOZHvM5N/6HirWhSdlkwiONuQdULs428buB1ZWu X-Received: by 2002:a17:906:f753:: with SMTP id jp19mr8934776ejb.216.1572858711104; Mon, 04 Nov 2019 01:11:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572858711; cv=none; d=google.com; s=arc-20160816; b=O+d6byL8WrgFUS7uATUm0ITz8c1Eo7CG1sciEBFzZUreiFYnIYw4Z0HP0S3rCEUPT/ IduCFqafE8ujVyl2AuaIq22UjXB7JNiYpBiq2zBEYoARUZbnz+rDL86FagPamSjd3UWf rTPvt/6JXu3GMB4A8lKgYewYeANZrCWB7M47g3k8bEIQoN0yn8oq7HziYDctTNUoE+Cq mBA2minSK9PhkU5XM2dhT3gmR+WgdCuuvxHFMd5AIKAk52KNpojtO0qXM0HjBfhoK9PG Or+Yu/2WKZyTJKcHnUkZPU7txHVs5kBCBedgfIG/ljBPhjNn0i+AR74Q6E2GWDzRpiz3 qksw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=kZauLRKGORlzHKolgxuvhnwAUgWkL6gR0sU76O+TfQQ=; b=FcTeOEeekXsjvVgqBikrmqcOjs4tIywVi9v6iOrayrfc7VJiLTLKBFV1iEzSMZ4E8y cqfVaA0hIYMcGHtvrzELxmpE5MDZ3fOuQ4BzNlweEG9iGNiyXzl2ZpviDCvFkjS0Mvkn ooIqdrblk8BYXoFqFsSGPGo0z0EGGcBQEjsMuysI8IW1NbpQmZJ90FBB2pChb/HxGMRg Z4298xl3xWsi+4+zusVBOBvkFWpdOAt6VQrCqeZVKIrqpf+PoPr27AGPTU5Z4QZ0oU1+ buR96uxzRNqV1DBUoX5qx0AbzIPxNwuB8bqStmNU3FYAJm85I7hhgl+ygR5wjJgkqklH EONw== 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 q17si10757892ejm.165.2019.11.04.01.11.27; Mon, 04 Nov 2019 01:11:51 -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 S1728362AbfKDJKB (ORCPT + 99 others); Mon, 4 Nov 2019 04:10:01 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:33344 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728344AbfKDJKA (ORCPT ); Mon, 4 Nov 2019 04:10:00 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 0400F1C06D3; Mon, 4 Nov 2019 10:09:59 +0100 (CET) Date: Mon, 4 Nov 2019 10:09:58 +0100 From: Pavel Machek To: Martin Schiller Cc: jacek.anaszewski@gmail.com, dmurphy@ti.com, rafal@milecki.pl, linux@rasmusvillemoes.dk, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] leds: trigger: netdev: fix handling on interface rename Message-ID: <20191104090958.GI12355@duo.ucw.cz> References: <20191025070142.23654-1-ms@dev.tdt.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yhze8HlyfmXt1APY" Content-Disposition: inline In-Reply-To: <20191025070142.23654-1-ms@dev.tdt.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --yhze8HlyfmXt1APY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The NETDEV_CHANGENAME code is not "unneeded" like it is stated in commit > 4cb6560514fa ("leds: trigger: netdev: fix refcnt leak on interface > rename"). >=20 > The event was accidentally misinterpreted equivalent to > NETDEV_UNREGISTER, but should be equivalent to NETDEV_REGISTER. >=20 > This was the case in the original code from the openwrt project. >=20 > Otherwise, you are unable to set netdev led triggers for (non-existent) > netdevices, which has to be renamed. This is the case, for example, for > ppp interfaces in openwrt. >=20 > Fixes: 06f502f57d0d ("leds: trigger: Introduce a NETDEV trigger") > Fixes: 4cb6560514fa ("leds: trigger: netdev: fix refcnt leak on interface= rename") > Signed-off-by: Martin Schiller Thanks, applied. I assume it does not fix _real bad_ bug to qualify for stable. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --yhze8HlyfmXt1APY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCXb/q5gAKCRAw5/Bqldv6 8lRfAJ9218hA1HtD2txQdrnyAfZdMWB38ACgwBt2+abNumlOLi8NiQfUnIB05BI= =jtTa -----END PGP SIGNATURE----- --yhze8HlyfmXt1APY--