Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3758822ybi; Fri, 5 Jul 2019 13:24:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqwXOU1h7ig0JYfllaSuFQc/ObykI9UoJtV1dYR8U6k8j9zTHDxeturgUL0XALSpNapA5WPD X-Received: by 2002:a17:902:5c3:: with SMTP id f61mr7227008plf.98.1562358243005; Fri, 05 Jul 2019 13:24:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562358242; cv=none; d=google.com; s=arc-20160816; b=vqprPWOWiNJLNZL3aMFV893XJF4oFKeI386PiqsUyS08bOktMqn5kXrqJhF1Tt+R8N Izxj23gufWEA6glAgqOmiSdImoOgA0BWLNUr9ouWoLu3VbSh07JA7b/zcZ0BG0Xz1bxJ IPnt7K0Ijn2KHjL5EU2rR3GAa0cJ6ePtxSyiFym8w04PtRnUGVJheIRlEWpTDXQdIBw4 cXMWZtJv88HN3zgsac6UqdEXnAdyNnKq5eejywQ4gg6NndgNf53oQlBk/9RhkGVIv0M0 Qg4tIMYkZIAPg6NY5P2glo22INpHf0DAY6MVa0in+yp9rE+PCG6tWhaEGmRxTX+DCUCM kc7Q== 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=9p1FvcE4mktatfJjO/RxtiRMOKr6pPUXKAYNBk/hg5U=; b=Sq2Ry3/xv9VoNt/Ghu+GBYINQR4S9DuqvSAsSPpHDaJrwGvSMsaW4lmNLEPzlUSTXq E91EvRcKqKGf1JQDnv3tiezxtvDBu3kI/FfA3QPEmQhSnfWcUI0u+DWVL7Ez9Zn0r1Y0 ItQe0T20mqMexQFyDPXcMK6RERh+/NfcRPVMnDXriNh70I+o8v/FuUTMwzMxlSrVq/WA KtadCrdNWfclS4V/yTn7+k0ByAGZ3hkoQJSeyYC/1/fb7AsdBecR2hdHW40whYO21zc/ Q5tnOyMlq6qiMfzMuIRGXmdMBqpyAwXxFo41nn1dcI5r6qL9Qqupy1yEYOj8/OW6amev X/4Q== 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 b23si9578153plz.169.2019.07.05.13.23.47; Fri, 05 Jul 2019 13:24:02 -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 S1727275AbfGEUXU (ORCPT + 99 others); Fri, 5 Jul 2019 16:23:20 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:37477 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726411AbfGEUXU (ORCPT ); Fri, 5 Jul 2019 16:23:20 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 67D6480594; Fri, 5 Jul 2019 22:23:07 +0200 (CEST) Date: Fri, 5 Jul 2019 22:23:17 +0200 From: Pavel Machek To: Joe Perches Cc: Sakari Ailus , Jacek Anaszewski , Dan Murphy , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/8] leds: as3645a: Fix misuse of strlcpy Message-ID: <20190705202317.GA5445@amd> References: <79fe35321ff794dccf1d08b415cee40636fa5fce.1562283944.git.joe@perches.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: <79fe35321ff794dccf1d08b415cee40636fa5fce.1562283944.git.joe@perches.com> 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 --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu 2019-07-04 16:57:42, Joe Perches wrote: > Probable cut&paste typo - use the correct field size. >=20 > Signed-off-by: Joe Perches Ack. Pavel > --- > drivers/leds/leds-as3645a.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/leds/leds-as3645a.c b/drivers/leds/leds-as3645a.c > index 14ab6b0e4de9..050088dff8dd 100644 > --- a/drivers/leds/leds-as3645a.c > +++ b/drivers/leds/leds-as3645a.c > @@ -668,7 +668,7 @@ static int as3645a_v4l2_setup(struct as3645a *flash) > }; > =20 > strlcpy(cfg.dev_name, led->name, sizeof(cfg.dev_name)); > - strlcpy(cfgind.dev_name, flash->iled_cdev.name, sizeof(cfg.dev_name)); > + strlcpy(cfgind.dev_name, flash->iled_cdev.name, sizeof(cfgind.dev_name)= ); > =20 > flash->vf =3D v4l2_flash_init( > &flash->client->dev, flash->flash_node, &flash->fled, NULL, --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl0fsbUACgkQMOfwapXb+vIanwCguZhbbEab7n2anLambt3YwIU5 BnkAoLc4SKnIko69xeOf6HmHCL495jOx =S9vd -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1--