lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date: Fri, 1 Mar 2024 22:53:29 +0300
From: Nikita Kiryushin <kiryushin@...ud.ru>
To: Sudip Mukherjee <sudipm.mukherjee@...il.com>
Cc: Teddy Wang <teddy.wang@...iconmotion.com>,
 Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
 linux-fbdev@...r.kernel.org, linux-staging@...ts.linux.dev,
 linux-kernel@...r.kernel.org, lvc-project@...uxtesting.org
Subject: [PATCH] staging: sm750fb: Remove unneeded setting of
 info->screen_size


In lynxfb_set_fbinfo info->screen_size is set twice, the first value is
never used and then overwritten.

Remove the first time the value is set.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 81dee67e215b ("staging: sm750fb: add sm750 to staging")
Signed-off-by: Nikita Kiryushin <kiryushin@...ud.ru>
---
  drivers/staging/sm750fb/sm750.c | 1 -
  1 file changed, 1 deletion(-)

diff --git a/drivers/staging/sm750fb/sm750.c 
b/drivers/staging/sm750fb/sm750.c
index 04c1b32a22c5..70d1c8292df0 100644
--- a/drivers/staging/sm750fb/sm750.c
+++ b/drivers/staging/sm750fb/sm750.c
@@ -845,7 +845,6 @@ static int lynxfb_set_fbinfo(struct fb_info *info, 
int index)
  	info->pseudo_palette = &par->pseudo_palette[0];
  	info->screen_base = crtc->v_screen;
  	pr_debug("screen_base vaddr = %p\n", info->screen_base);
-	info->screen_size = line_length * var->yres_virtual;
   	/* set info->fix */
  	fix->type = FB_TYPE_PACKED_PIXELS;
-- 
2.34.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ