diff options
author | Michael Buesch <m@bues.ch> | 2018-07-31 22:14:16 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-05 10:20:09 +0300 |
commit | a8625b187d7e75af3962d0840e2595f1008ca52b (patch) | |
tree | a9a38e2864555071e7b7e0f7fd9c93fac9d3615e /sound/hda/local.h | |
parent | 268143ee0b8d71975bf16056579da57ee9e91be0 (diff) | |
download | linux-a8625b187d7e75af3962d0840e2595f1008ca52b.tar.xz |
b43legacy/leds: Ensure NUL-termination of LED name string
commit 4d77a89e3924b12f4a5628b21237e57ab4703866 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>
Diffstat (limited to 'sound/hda/local.h')
0 files changed, 0 insertions, 0 deletions