Skip to contentSkip to conversation

fix the out-of-bounds access of dramsr13

PATCH New Wenjia Zhao 1 participant 1 message Feb 1, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 fix the out-of-bounds access of dramsr13

---
 drivers/video/fbdev/sis/sis_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/video/fbdev/sis/sis_main.c +1 -1
index 03c736f..6774252 100644
@@ -4834,7 +4834,7 @@ static int sisfb_post_xgi_ramsize(struct sis_video_info *ivideo)
 	sisfb_post_xgi_delay(ivideo, 1);
 
 	j = (ivideo->chip == XGI_20) ? 5 : 9;
-	k = (ivideo->chip == XGI_20) ? 12 : 4;
+	k = (ivideo->chip == XGI_20) ? 11 : 3;
 	status = -EIO;
 
 	for(i = 0; i < k; i++) {
Signature · 1 line
2.7.4