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>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210325212202.142945-1-alaaemadhossney.ae@gmail.com>
Date:   Thu, 25 Mar 2021 23:22:02 +0200
From:   Alaa Emad <alaaemadhossney.ae@...il.com>
To:     hverkuil@...all.nl
Cc:     gregkh@...uxfoundation.org, mchehab@...nel.org,
        linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
        syzkaller@...glegroups.com,
        Alaa Emad <alaaemadhossney.ae@...il.com>,
        syzbot+a4e309017a5f3a24c7b3@...kaller.appspotmail.com
Subject: [PATCH] media: sq905.c: fix uninitialized variable

Reported-by: syzbot+a4e309017a5f3a24c7b3@...kaller.appspotmail.com
Signed-off-by: Alaa Emad <alaaemadhossney.ae@...il.com>
---
 drivers/media/usb/gspca/sq905.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/media/usb/gspca/sq905.c b/drivers/media/usb/gspca/sq905.c
index 97799cfb832e..54b733002f5c 100644
--- a/drivers/media/usb/gspca/sq905.c
+++ b/drivers/media/usb/gspca/sq905.c
@@ -157,8 +157,8 @@ static int sq905_ack_frame(struct gspca_dev *gspca_dev)
 static int
 sq905_read_data(struct gspca_dev *gspca_dev, u8 *data, int size, int need_lock)
 {
-	int ret;
-	int act_len;
+	int ret = 0;
+	int act_len = 0;
 
 	gspca_dev->usb_buf[0] = '\0';
 	if (need_lock)
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ