summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorIgor M. Liplianin <liplianin@me.by>2008-10-05 14:57:11 +0300
committerIgor M. Liplianin <liplianin@me.by>2008-10-05 14:57:11 +0300
commit20a2a519ebe1cbcd0115a7941db0b253d3059072 (patch)
tree2f1bf8434dc494ab01986aa84949f995f2d0a4c7 /linux/drivers/media/dvb
parent7e8210054d8fdde51bf14c22cc8279f90396fd11 (diff)
downloadmediapointer-dvb-s2-20a2a519ebe1cbcd0115a7941db0b253d3059072.tar.gz
mediapointer-dvb-s2-20a2a519ebe1cbcd0115a7941db0b253d3059072.tar.bz2
Remove NULL pointer in stb6000 driver.
From: Igor M. Liplianin <liplianin@me.by> Remove NULL pointer in stb6000 driver, as it raises error for DvbWorld USB card. Signed-off-by: Igor M. Liplianin <liplianin@me.by>
Diffstat (limited to 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/stb6000.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/dvb/frontends/stb6000.c b/linux/drivers/media/dvb/frontends/stb6000.c
index a0ece4278..43e583a44 100644
--- a/linux/drivers/media/dvb/frontends/stb6000.c
+++ b/linux/drivers/media/dvb/frontends/stb6000.c
@@ -202,12 +202,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,