Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp339829img; Mon, 18 Mar 2019 04:29:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqy3hpOUNR+ByNICj3mYOkHwJXbXz5w7GwyC8Q4+c+3Tzm3z5zLLZvNQK+DT0X6g9lYrWCXg X-Received: by 2002:a63:fd10:: with SMTP id d16mr17085397pgh.306.1552908552056; Mon, 18 Mar 2019 04:29:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552908552; cv=none; d=google.com; s=arc-20160816; b=dJ5lmo+2iTqUihGUsnJO13ndWX2WUEZSuNYReoG5Tw66jfDzD6OYztoUeA58mPnodz mqH39Ra/Ck3K+STYq4peNmNGb5j3Wo8qrT5ILr5+IahrEciP2v0vUc49R2xHF695zW0B 5CRpv+E4SZCKmsCfjstuAhLnbCswJaI4H3ME+ok2csDnmnlHAbHeN8z7AXPMFWb4xJ93 CkKoGpFPFwZ4vZrS0xUkPTpf/jaxJeQqTHJixXEPFSgROC4WOAw4TK8RFf1lAc6VUdgG vNXBMg5WfF0KIPPcr5t4T5Szz6BQTEpOijOP2BkCfiMMVxeunKVXtFp/X2Z4kcQ9Fp1M 0XfQ== 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=qN2ZlQ6aV70YsbxrUbRjJ4mLsuWdY9gPDOJClQpHfho=; b=YvgtcpOQJjMbVr0vMuTWbBH+MwvGRhzD0B1hwFzirs7vogGz4boJZVQFHDo5FzzxWE nbtcPp8pNKal63IE2ZbBX6NvBKgiBbhxt29SWIw7rc4tldrxePZO6bth1GVevAutQCgY Oz11fI0Xe5fcXgD0Am4uK0h2G2Agq+E5Hf5tHXf/dcRi3IyeMPxVTG1veeDAFQDokf5k Jfks1sV9C0ic1jL6uR/9L/YvFr3P1wB1wazDB+XYjJ+ivnVfP3OJBuY67SaMXILWmzOl P+qFaFoJbCRpjc26ok/64m/Oxz5QIWZu8vJ7cjWf7TFEA+uFaPBxA7axAe3RoGGZJCYV mp6Q== 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 u2si8928647pgp.549.2019.03.18.04.28.57; Mon, 18 Mar 2019 04:29:12 -0700 (PDT) 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 S1727062AbfCRL0R (ORCPT + 99 others); Mon, 18 Mar 2019 07:26:17 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60551 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725973AbfCRL0R (ORCPT ); Mon, 18 Mar 2019 07:26:17 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id A196280733; Mon, 18 Mar 2019 12:26:07 +0100 (CET) Date: Mon, 18 Mar 2019 12:26:14 +0100 From: Pavel Machek To: Rasmus Villemoes Cc: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= , Jacek Anaszewski , LKML , linux-leds@vger.kernel.org Subject: Re: [PATCH v2 4/6] leds: netdev trigger: move name length checking to netdev_trig_set_device Message-ID: <20190318112614.GD6101@amd> References: <20190313202615.22883-1-linux@rasmusvillemoes.dk> <20190314140619.3309-1-linux@rasmusvillemoes.dk> <20190314140619.3309-5-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9UV9rz0O2dU/yYYn" Content-Disposition: inline In-Reply-To: <20190314140619.3309-5-linux@rasmusvillemoes.dk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --9UV9rz0O2dU/yYYn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-03-14 15:06:17, Rasmus Villemoes wrote: > It's better to check that size is sane in the function that does the > memcpy'ing and 0-termination to the IFNAMSIZ-sized buffer instead of > relying on callers getting it right. Not rejecting size upfront does > mean we would do the cancel_delayed_work_sync(), but that gets fixed > up by the set_baseline_state() call. >=20 > Signed-off-by: Rasmus Villemoes Exactly. 2,4: Acked-by: Pavel Machek --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --9UV9rz0O2dU/yYYn Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlyPgFYACgkQMOfwapXb+vJHowCeMH7W7PGfHHfcMCmYt6AUt7HL xxUAoIyD0WjFwmL2KmYJtVhen8/AmiOi =vaYf -----END PGP SIGNATURE----- --9UV9rz0O2dU/yYYn--