Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2679482ybi; Thu, 4 Jul 2019 16:59:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyMhmsg16n4G4rZxetmy7+KRHQBB0ZSbNbTOUHER6OlSa+7vNnDdb6v5S2ui6vSaOOK3If9 X-Received: by 2002:a17:902:f082:: with SMTP id go2mr935639plb.25.1562284744405; Thu, 04 Jul 2019 16:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562284744; cv=none; d=google.com; s=arc-20160816; b=Pf5K0A3Aw+6I83Tlqokedmnu/VH0YfbNnftsnYWy6e/JOsJx0+4n2SqTQxuYjMflRk a2xwzFSUF4b8+91yvISNfDYglgtWKAYnBbRAqhqZQrGMeAgr7iPonYVt30GNuLYtGz/r 9BJwCK/sqt+7EcMvyzn1weQg2el6qhQUj3s6CUkbjQ3boC6RTawoiZr7uB1xBt+OF7az 0I7SYV/peoNhRZTNRMWY9PEZeIFv4625hzVMkqhxJpeunm6YwKdbqpzHeoyj7R84+Ddq KyWAlfeXHj8vnrUOoJ1Z+5xeBNwtqvcD70PMupe+H0AsvMFft9Saj2Kc8+oTiFmHYxIz 9fZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=cqzRQP7GsnQyFH07L6peAgAi0Yiaoh6e5Qe34WlxybQ=; b=KkCVUyr82QBe+p0e3yrTm3/AtNzwGFUR6RPdNvGdE8is7++dVOu+iKMyxS8riQdFb1 TJCYHfNvGhXdnCD9hO83cvPy9Mzf7oqujdTNQr2sRx/vp47th+8JGprKRAM3hRKSVzK7 W2bKpQ7K5sU3smuO3s3UYee79qSxtb5XkaX/b1uTpp/D9ePMkv36L+ZORuCeaiK3U50X owSgJvZ5gwSWMgbO2DjLebA/A4TuJMoLutEE9D1YrvXyg/rUFDU9fQkkRwOelT0daoBv YQFZFO9O+ctbXVPFb3lwWnjsxV+eUytvFngxZxBq87uVwpRL2bLOAmBCwhQNcCaEgxl/ 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 s29si7188029pfd.147.2019.07.04.16.58.31; Thu, 04 Jul 2019 16:59:04 -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 S1727822AbfGDX6A (ORCPT + 99 others); Thu, 4 Jul 2019 19:58:00 -0400 Received: from smtprelay0131.hostedemail.com ([216.40.44.131]:38063 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727748AbfGDX55 (ORCPT ); Thu, 4 Jul 2019 19:57:57 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 2C144181D33FB; Thu, 4 Jul 2019 23:57:56 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:355:379:541:800:960:973:988:989:1260:1345:1359:1437:1534:1539:1567:1711:1714:1730:1747:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3865:5007:6261:8603:10004:10848:11658:11914:12048:12297:12555:12895:13069:13138:13231:13311:13357:14096:14181:14384:14394:14721:21080:21627:30029:30054,0,RBL:23.242.196.136:@perches.com:.lbl8.mailshell.net-62.8.0.180 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:26,LUA_SUMMARY:none X-HE-Tag: dress39_62395d273d11f X-Filterd-Recvd-Size: 1588 Received: from joe-laptop.perches.com (cpe-23-242-196-136.socal.res.rr.com [23.242.196.136]) (Authenticated sender: joe@perches.com) by omf14.hostedemail.com (Postfix) with ESMTPA; Thu, 4 Jul 2019 23:57:54 +0000 (UTC) From: Joe Perches To: Sakari Ailus , Jacek Anaszewski , Pavel Machek , Dan Murphy Cc: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/8] leds: as3645a: Fix misuse of strlcpy Date: Thu, 4 Jul 2019 16:57:42 -0700 Message-Id: <79fe35321ff794dccf1d08b415cee40636fa5fce.1562283944.git.joe@perches.com> X-Mailer: git-send-email 2.15.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Probable cut&paste typo - use the correct field size. Signed-off-by: Joe Perches --- 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, -- 2.15.0