]> git.itanic.dy.fi Git - linux-stable/commit
nouveau/gsp/r535: uninitialized variable in r535_gsp_acpi_mux_id()
authorDan Carpenter <dan.carpenter@linaro.org>
Tue, 7 Nov 2023 15:18:31 +0000 (18:18 +0300)
committerDanilo Krummrich <dakr@redhat.com>
Tue, 14 Nov 2023 21:40:18 +0000 (22:40 +0100)
commit09f12bf9f790052710bd6e48a1fc1bc4d9e17389
tree5dda2b4b7a1de2e24ad71047cc55c24c4fa2fe1a
parentb85ea95d086471afb4ad062012a4d73cd328fa86
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: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Danilo Krummrich <dakr@redhat.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1d864f6e-43e9-43d8-9d90-30e76c9c843b@moroto.mountain
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c