From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kalle Valo Subject: Re: [PATCH v2] atmel: using strlcpy() to avoid possible buffer overflows Date: Mon, 02 Jul 2018 17:40:14 +0300 Message-ID: <8736x1snu9.fsf@kamboji.qca.qualcomm.com> References: <20180630063341.9900-1-yuehaibing@huawei.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , , , , To: YueHaibing Return-path: In-Reply-To: <20180630063341.9900-1-yuehaibing@huawei.com> (yuehaibing@huawei.com's message of "Sat, 30 Jun 2018 14:33:41 +0800") Sender: linux-kernel-owner@vger.kernel.org List-Id: netdev.vger.kernel.org YueHaibing writes: > 'firmware' is a module param which may been longer than firmware_id, > so using strlcpy() to guard against overflows. Also priv is allocated > with zeroed memory,no need to set firmware_id[0] to '\0'. > > v1 -> v2: remove priv->firmware_id[0] = '\0'; > > Signed-off-by: YueHaibing > --- > drivers/net/wireless/atmel/atmel.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) The changelog should be after "---" line. I can fix it this time, but in the future please use the correct location. https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#changelog_missing -- Kalle Valo