]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Dec 2025 13:02:29 +0000 (14:02 +0100)
commit72f8a15524f315ba5594d35511b2926a8a42fb46
tree2760c52829f80aea7c00c0bde1ac7919b7e157a8
parent5248b34df18c2d60fa9f0f5f2101ae00bb8cf0bf
gpu: nova-core: gsp: do not unwrap() SGEntry

[ Upstream commit f7a33a67c50c92589b046e69b9075b7d28d31f87 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/nova-core/firmware/gsp.rs