Skip to content

Commit

Permalink
V4L/DVB (9175): Remove NULL pointer in stb6000 driver.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Igor M. Liplianin authored and Mauro Carvalho Chehab committed Oct 13, 2008
1 parent de9be0e commit ceab2fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/media/dvb/frontends/stb6000.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ceab2fe

Please sign in to comment.