diff options
author | Timur Tabi <ttabi@nvidia.com> | 2025-08-12 19:10:02 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-04 15:31:55 +0200 |
commit | c5e42567724ee99d45e1eb98bb4b9c04e2294d26 (patch) | |
tree | 827cea48cd2ac6bdabddac96b487117be215ec23 /tools/perf/scripts/python/sched-migration.py | |
parent | 2de53596eeb201c7c9b8ffd72d31ec0ae5bf7aa2 (diff) |
drm/nouveau: fix error path in nvkm_gsp_fwsec_v2
commit 66e82b6e0a28d4970383e1ee5d60f431001128cd upstream.
Function nvkm_gsp_fwsec_v2() sets 'ret' if the kmemdup() call fails, but
it never uses or returns 'ret' after that point. We always need to release
the firmware regardless, so do that and then check for error.
Fixes: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
Cc: stable@vger.kernel.org # v6.7+
Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Link: https://lore.kernel.org/r/20250813001004.2986092-1-ttabi@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions