Displaying 1 result from an estimated 1 matches for "5babc5a7c7d5".
2024 Mar 23
0
[PATCH] therm.c: Adding an array index check before accessing an element.
...xtesting.org) with SVACE.
Signed-off-by: Andrey Shumilin <shum.sdl at nppct.ru>
---
drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c
index 5babc5a7c7d5..78387053f214 100644
--- a/drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c
+++ b/drivers/gpu/drm/nouveau/nvkm/subdev/bios/therm.c
@@ -180,6 +180,8 @@ nvbios_therm_fan_parse(struct nvkm_bios *bios, struct nvbios_therm_fan *fan)
cur_trip->fan_duty = duty_lut[(value & 0xf000) >> 12];...