]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/nouveau: refactor deprecated strcpy
authorMadhur Kumar <madhurkumar004@gmail.com>
Thu, 4 Dec 2025 12:08:22 +0000 (17:38 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:03:37 +0000 (14:03 +0100)
commit731e1beb10c4e43b8dc70462814792049f8aa329
treedb8543fe71a9870dc6572e6fea6b6018f8ef054c
parentcdda0d06f8650e33255f79839f188bbece44117c
drm/nouveau: refactor deprecated strcpy

[ Upstream commit 2bdc2c0e12fac56e41ec05fb771ead986ea6dac0 ]

strcpy() has been deprecated because it performs no bounds checking on the
destination buffer, which can lead to buffer overflows. Use the safer
strscpy() instead.

Signed-off-by: Madhur Kumar <madhurkumar004@gmail.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Fixes: 15a996bbb697 ("drm/nouveau: assign fence_chan->name correctly")
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patch.msgid.link/20251204120822.17502-1-madhurkumar004@gmail.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/nouveau/nouveau_fence.c