b43/leds: Ensure NUL-termination of LED name string
authorMichael Büsch <m@bues.ch>
Tue, 31 Jul 2018 19:14:04 +0000 (21:14 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 9 Aug 2018 15:22:33 +0000 (18:22 +0300)
commit2aa650d1950fce94f696ebd7db30b8830c2c946f
tree176d29fee91ef2617a6c01d93da9854c1f3fad3b
parentc7743c428111912fffceb38b860024f7e33b3e3c
b43/leds: Ensure NUL-termination of LED name string

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>
drivers/net/wireless/broadcom/b43/leds.c