]> www.infradead.org Git - users/jedix/linux-maple.git/commit
b43/leds: Ensure NUL-termination of LED name string
authorMichael Buesch <m@bues.ch>
Tue, 31 Jul 2018 19:14:04 +0000 (21:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:26:39 +0000 (09:26 +0200)
commite16bbdeccdd7fa073f35c98f2c1d69188984731e
treec7f8e220e008d92339544fcbba7e861b6b139e62
parentf0f3784ee3e944bc0044da45ad1e56580fd137d9
b43/leds: Ensure NUL-termination of LED name string

commit 2aa650d1950fce94f696ebd7db30b8830c2c946f upstream.

strncpy might not NUL-terminate the string, if the name equals the buffer size.
Use strlcpy instead.

Signed-off-by: Michael Buesch <m@bues.ch>
Cc: stable@vger.kernel.org
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/broadcom/b43/leds.c