]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
gpu: nova-core: vbios: use checked access in `FwSecBiosImage::header`
authorEliot Courtney <ecourtney@nvidia.com>
Mon, 25 May 2026 13:57:24 +0000 (22:57 +0900)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 25 May 2026 14:30:34 +0000 (16:30 +0200)
commit25ad950b4ee37f7b42e006f508a793b7c38fcc12
treeb4e67112cf040052f48924aabf4b0e6fbad15f41
parent7c62d0b006527efc5fb4609b555c65674c819603
gpu: nova-core: vbios: use checked access in `FwSecBiosImage::header`

Use checked access in `FwSecBiosImage::header` for getting the header
version since the value is firmware derived.

Fixes: 47c4846e4319 ("gpu: nova-core: vbios: Add support for FWSEC ucode extraction")
Reviewed-by: Joel Fernandes <joelagnelf@nvidia.com>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Eliot Courtney <ecourtney@nvidia.com>
Link: https://patch.msgid.link/20260525-fix-vbios-v5-6-e5e455251537@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/vbios.rs