Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3031651ybi; Fri, 5 Jul 2019 00:35:30 -0700 (PDT) X-Google-Smtp-Source: APXvYqxS0PGVwBLstWLer6oYR4m6jUrQ++p42a+R8MMjN/CvrhzE8fn1uR9pIieOoOVPNtBv8VTU X-Received: by 2002:a17:902:7202:: with SMTP id ba2mr3462663plb.266.1562312130737; Fri, 05 Jul 2019 00:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562312130; cv=none; d=google.com; s=arc-20160816; b=KKJcAsEGL7o0lzc299p1BXyudxjUNCXRKsxyG1avQzSiQ+rkLg9Of36GDFZyxlc2iQ 5xsmFzcshUgFtVWEnIpk+4LufAoakTRjw44usJsRG1T72sDW1yI8qsZBPjPtLUUiNk9O 06qv5cF15TcvCyglIKEaj18CEatt/YxCjCx3whfx7AhW/cdavzuIzrBrDdY8KggcX+oO tI90qTTy2RSAyOnNknxhv11Urng3z6Uh5pCpyGCS4AFMujZBkXosjsCoZRkzeQym/YAx mK/yUgugXWkOoGZI3Ejr2Jzd0q55DuUvISh3Jj4l2ENwAmaISnYPHxNcPrsviqO4IHm8 fWAQ== 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=J0TLvRBemqPWtwbEmy57fVHXh9JqSNexljP3jVPo4M8=; b=QcqH3v4dMl3Ito+UCVJegtg11hiKy+mXt0UBzbUB987Qa4a6BreAvmx83FEvejxqOG ukMcpYNG0IHLai1rAdJN6SNxOt0ttjJD9kS46jUuRhW2gegPoQDEzsHtlOTqrZlt3gmC bDualJBfqU3Md7ePXvY5cS3BFMtF6rpMczSkMD0PnkIUCxJ2Mhima15WnKVhsJ9fL3MW iCZtzkkqDsZ7XCEg41osrrQTSKjci2n7isLUefha6DJlkszmLa10V/fevjMWovSf7Ase FA8KWUPsfJbaDlxQxfyD53OMEQ6ss3a5Pbt2wBHzMh+xnnfUjDyThJ8EHv2s/rKUMA+X sTIA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 8si7767919pgk.539.2019.07.05.00.35.16; Fri, 05 Jul 2019 00:35:30 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727968AbfGEHeJ (ORCPT + 99 others); Fri, 5 Jul 2019 03:34:09 -0400 Received: from retiisi.org.uk ([95.216.213.190]:53892 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfGEHeJ (ORCPT ); Fri, 5 Jul 2019 03:34:09 -0400 Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2a01:4f9:c010:4572::80:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id A7F8E634C7F; Fri, 5 Jul 2019 10:33:23 +0300 (EEST) Received: from sailus by valkosipuli.localdomain with local (Exim 4.89) (envelope-from ) id 1hjIig-0001if-VQ; Fri, 05 Jul 2019 10:33:22 +0300 Date: Fri, 5 Jul 2019 10:33:22 +0300 From: Sakari Ailus To: Joe Perches Cc: Jacek Anaszewski , Pavel Machek , 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: <20190705073322.wee52ttghxm2vczn@valkosipuli.retiisi.org.uk> References: <79fe35321ff794dccf1d08b415cee40636fa5fce.1562283944.git.joe@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <79fe35321ff794dccf1d08b415cee40636fa5fce.1562283944.git.joe@perches.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 04, 2019 at 04:57:42PM -0700, Joe Perches wrote: > Probable cut&paste typo - use the correct field size. > > Signed-off-by: Joe Perches Thanks, Joe! Acked-by: Sakari Ailus > --- > drivers/leds/leds-as3645a.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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) > }; > > 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)); > > flash->vf = v4l2_flash_init( > &flash->client->dev, flash->flash_node, &flash->fled, NULL, -- Kind regards, Sakari Ailus