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]
Message-Id: <20260112055921.118009-1-imntjempty@163.com>
Date: Mon, 12 Jan 2026 05:59:21 +0000
From: "jempty.liang" <imntjempty@....com>
To: hverkuil@...nel.org,
	mchehab@...nel.org
Cc: linux-media@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	"jempty.liang" <imntjempty@....com>
Subject: [PATCH] media: vivid: Simplify fb_vblank init in fb_blank

Adjust struct fb_vblank declaration scope and use aggregate init
instead of memset for cleaner FBIOGET_VBLANK handling.

Signed-off-by: jempty.liang <imntjempty@....com>
---
 drivers/media/test-drivers/vivid/vivid-osd.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/media/test-drivers/vivid/vivid-osd.c b/drivers/media/test-drivers/vivid/vivid-osd.c
index 91ad9b314f2e..566f870b56a6 100644
--- a/drivers/media/test-drivers/vivid/vivid-osd.c
+++ b/drivers/media/test-drivers/vivid/vivid-osd.c
@@ -73,12 +73,10 @@ void vivid_fb_clear(struct vivid_dev *dev)
 static int vivid_fb_ioctl(struct fb_info *info, unsigned cmd, unsigned long arg)
 {
 	struct vivid_dev *dev = (struct vivid_dev *)info->par;
+	struct fb_vblank vblank = {};
 
 	switch (cmd) {
 	case FBIOGET_VBLANK: {
-		struct fb_vblank vblank;
-
-		memset(&vblank, 0, sizeof(vblank));
 		vblank.flags = FB_VBLANK_HAVE_COUNT | FB_VBLANK_HAVE_VCOUNT |
 			FB_VBLANK_HAVE_VSYNC;
 		vblank.count = 0;
-- 
2.25.1


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ