From mboxrd@z Thu Jan 1 00:00:00 1970 From: YueHaibing Subject: Re: [PATCH v2] atmel: using strlcpy() to avoid possible buffer overflows Date: Tue, 3 Jul 2018 09:48:38 +0800 Message-ID: <258d1cb3-b876-d7d5-48f8-13bf221c6b3d@huawei.com> References: <20180630063341.9900-1-yuehaibing@huawei.com> <8736x1snu9.fsf@kamboji.qca.qualcomm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Cc: , , , , , To: Kalle Valo Return-path: In-Reply-To: <8736x1snu9.fsf-HodKDYzPHsUD5k0oWYwrnHL1okKdlPRT@public.gmane.org> Sender: linux-wireless-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: netdev.vger.kernel.org On 2018/7/2 22:40, Kalle Valo wrote: > 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. Thank you,will notice it. > > https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches#changelog_missing >