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:
de9be0e
)
V4L/DVB (9175): Remove NULL pointer in stb6000 driver.
author
Igor M. Liplianin
<liplianin@me.by>
Sun, 5 Oct 2008 11:57:11 +0000
(08:57 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Mon, 13 Oct 2008 14:26:25 +0000
(12:26 -0200)
Remove NULL pointer in stb6000 driver,
as it raises error for DvbWorld USB card.
Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Steven Toth <stoth@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb6000.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/frontends/stb6000.c
b/drivers/media/dvb/frontends/stb6000.c
index 7d65123b4ec9b27649ba6dcd60fc61d7433eac15..0e2cb0df144171cffa183a72b813dede4078d026 100644
(file)
--- a/
drivers/media/dvb/frontends/stb6000.c
+++ b/
drivers/media/dvb/frontends/stb6000.c
@@
-201,12
+201,13
@@
struct dvb_frontend *stb6000_attach(struct dvb_frontend *fe, int addr,
struct i2c_adapter *i2c)
{
struct stb6000_priv *priv = NULL;
+ u8 b0[] = { 0 };
u8 b1[] = { 0, 0 };
struct i2c_msg msg[2] = {
{
.addr = addr,
.flags = 0,
- .buf =
NULL
,
+ .buf =
b0
,
.len = 0
}, {
.addr = addr,