]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.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)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:45:08 +0000 (19:45 -0600)
commitd8b5e6b5d7371a1b47180e0132274272b333a558
treec499d31d733fd600cb4464763ce76d840b5d4012
parent6a8ee40729990994692ff7066342c16b33f5c562
b43/leds: Ensure NUL-termination of LED name string

BugLink: https://bugs.launchpad.net/bugs/1835972
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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/net/wireless/broadcom/b43/leds.c