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

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

Signed-off-by: Márton Németh <nm...@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;
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to