]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: use CStr::from_bytes_until_nul() in elf64_section()
authorJohn Hubbard <jhubbard@nvidia.com>
Tue, 6 Jan 2026 03:52:26 +0000 (19:52 -0800)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 7 Jan 2026 18:36:11 +0000 (19:36 +0100)
commit2d7b4a44fb768e1887e7e4cdd8b86817ccd9c3bf
treec1a8bdca00366f09d1d20531a691ffe9aac718e7
parentda8264ce6c5c02b78f95d31021e942ab38d8dd39
gpu: nova-core: use CStr::from_bytes_until_nul() in elf64_section()

Instead of open-coding the steps for extracting a null-terminated
string, use the newly available CStr::from_bytes_until_nul().

Suggested-by: Joel Fernandes <joelagnelf@nvidia.com>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Link: https://patch.msgid.link/20260106035226.48853-3-jhubbard@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/firmware/gsp.rs