Skip to content

Commit 09f12bf

Browse files
Dan Carpenterdakr
authored andcommitted
nouveau/gsp/r535: uninitialized variable in r535_gsp_acpi_mux_id()
The if we hit the "continue" statement on the first iteration through the loop then "handle_mux" needs to be set to NULL so we continue looping. Fixes: 176fdcb ("drm/nouveau/gsp/r535: add support for booting GSP-RM") Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Danilo Krummrich <[email protected]> Signed-off-by: Danilo Krummrich <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent b85ea95 commit 09f12bf

File tree

1 file changed

+1
-1
lines changed
  • drivers/gpu/drm/nouveau/nvkm/subdev/gsp

1 file changed

+1
-1
lines changed

drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ static void
11591159
r535_gsp_acpi_mux_id(acpi_handle handle, u32 id, MUX_METHOD_DATA_ELEMENT *mode,
11601160
MUX_METHOD_DATA_ELEMENT *part)
11611161
{
1162-
acpi_handle iter = NULL, handle_mux;
1162+
acpi_handle iter = NULL, handle_mux = NULL;
11631163
acpi_status status;
11641164
unsigned long long value;
11651165

0 commit comments

Comments
 (0)