linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] media: sq905.c: fix uninitialized variable
@ 2021-03-25 21:22 Alaa Emad
  2021-03-26  7:11 ` Greg KH
  0 siblings, 1 reply; 7+ messages in thread
From: Alaa Emad @ 2021-03-25 21:22 UTC (permalink / raw)
  To: hverkuil
  Cc: gregkh, mchehab, linux-media, linux-kernel, syzkaller, Alaa Emad,
	syzbot+a4e309017a5f3a24c7b3

Reported-by: syzbot+a4e309017a5f3a24c7b3@syzkaller.appspotmail.com
Signed-off-by: Alaa Emad <alaaemadhossney.ae@gmail.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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-03-26  8:07 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-25 21:22 [PATCH] media: sq905.c: fix uninitialized variable Alaa Emad
2021-03-26  7:11 ` Greg KH
2021-03-26  7:14   ` Dmitry Vyukov
2021-03-26  7:24     ` Pavel Skripkin
2021-03-26  7:40       ` Dmitry Vyukov
2021-03-26  7:53         ` Pavel Skripkin
2021-03-26  8:06           ` Dmitry Vyukov

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).