public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] smssdio: initialize return value
@ 2009-11-22 21:52 Németh Márton
  0 siblings, 0 replies; only message in thread
From: Németh Márton @ 2009-11-22 21:52 UTC (permalink / raw)
  To: V4L Mailing List

From: Márton Németh <nm127@freemail.hu>

The return value may be used uninitialized when the size parameter
happens to be 0.

Signed-off-by: Márton Németh <nm127@freemail.hu>
---
diff -r bc16afd1e7a4 linux/drivers/media/dvb/siano/smssdio.c
--- a/linux/drivers/media/dvb/siano/smssdio.c	Sat Nov 21 12:01:36 2009 +0100
+++ b/linux/drivers/media/dvb/siano/smssdio.c	Sun Nov 22 22:40:31 2009 +0100
@@ -78,7 +78,7 @@

 static int smssdio_sendrequest(void *context, void *buffer, size_t size)
 {
-	int ret;
+	int ret = 0;
 	struct smssdio_device *smsdev;

 	smsdev = context;

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

only message in thread, other threads:[~2009-11-22 21:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-22 21:52 [PATCH] smssdio: initialize return value Németh Márton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox