diff options
author | Michael Buesch <m@bues.ch> | 2018-07-31 21:14:16 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-05 09:20:09 +0200 |
commit | a8625b187d7e75af3962d0840e2595f1008ca52b (patch) | |
tree | a9a38e2864555071e7b7e0f7fd9c93fac9d3615e /net/lapb/lapb_timer.c | |
parent | 268143ee0b8d71975bf16056579da57ee9e91be0 (diff) |
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 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions