linux-fbdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2/3] fix the out-of-bounds access of dramsr13
@ 2021-02-01 15:54 Wenjia Zhao
  0 siblings, 0 replies; only message in thread
From: Wenjia Zhao @ 2021-02-01 15:54 UTC (permalink / raw)
  Cc: driverfuzzing, Thomas Winischhofer, Bartlomiej Zolnierkiewicz,
	dri-devel, linux-fbdev, linux-kernel

Signed-off-by: Wenjia Zhao <driverfuzzing@gmail.com>
---
 drivers/video/fbdev/sis/sis_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/video/fbdev/sis/sis_main.c b/drivers/video/fbdev/sis/sis_main.c
index 03c736f..6774252 100644
--- a/drivers/video/fbdev/sis/sis_main.c
+++ b/drivers/video/fbdev/sis/sis_main.c
@@ -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++) {
-- 
2.7.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-02-01 15:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-01 15:54 [PATCH 2/3] fix the out-of-bounds access of dramsr13 Wenjia Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).