projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
296372e
)
V4L/DVB (13416): smssdio: initialize return value
author
Márton Németh
<nm127@freemail.hu>
Sun, 22 Nov 2009 21:52:31 +0000
(18:52 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Sat, 5 Dec 2009 20:41:46 +0000
(18:41 -0200)
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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/siano/smssdio.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/siano/smssdio.c
b/drivers/media/dvb/siano/smssdio.c
index d1d652e7f8905868b27661a60af2f47d87f6ec75..24206cbda2646b0aff55a62206a92faba9913196 100644
(file)
--- a/
drivers/media/dvb/siano/smssdio.c
+++ b/
drivers/media/dvb/siano/smssdio.c
@@
-78,7
+78,7
@@
struct smssdio_device {
static int smssdio_sendrequest(void *context, void *buffer, size_t size)
{
- int ret;
+ int ret
= 0
;
struct smssdio_device *smsdev;
smsdev = context;