]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpu: nova-core: gsp: do not unwrap() SGEntry
authorDanilo Krummrich <dakr@kernel.org>
Fri, 26 Sep 2025 13:05:53 +0000 (15:05 +0200)
committerAlexandre Courbot <acourbot@nvidia.com>
Wed, 15 Oct 2025 23:04:46 +0000 (08:04 +0900)
commitf7a33a67c50c92589b046e69b9075b7d28d31f87
treecdab4c30ee5ac5f12fe8f16bb248d6ce6eb12048
parent87990025b87283f1b8c50d4d75379ca6d86d2211
gpu: nova-core: gsp: do not unwrap() SGEntry

Don't use unwrap() to extract an Option<SGEntry>, instead handle the
error condition gracefully.

Fixes: a841614e607c ("gpu: nova-core: firmware: process and prepare the GSP firmware")
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Message-ID: <20250926130623.61316-2-dakr@kernel.org>
drivers/gpu/nova-core/firmware/gsp.rs