diff options
author | Igor M. Liplianin <liplianin@me.by> | 2008-10-05 07:57:11 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2008-10-13 10:26:25 -0400 |
commit | ceab2fe84987a9b2dbe6107f83ac99c98040abcc (patch) | |
tree | 67527051483464a1c029ad0a4f366cf712ec3dea /drivers | |
parent | de9be0eaae2a23b1782ae0d271961b83abc6e200 (diff) |
V4L/DVB (9175): Remove NULL pointer in stb6000 driver.
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/dvb/frontends/stb6000.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/stb6000.c b/drivers/media/dvb/frontends/stb6000.c index 7d65123b4ec9..0e2cb0df1441 100644 --- 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, | |||
201 | struct i2c_adapter *i2c) | 201 | struct i2c_adapter *i2c) |
202 | { | 202 | { |
203 | struct stb6000_priv *priv = NULL; | 203 | struct stb6000_priv *priv = NULL; |
204 | u8 b0[] = { 0 }; | ||
204 | u8 b1[] = { 0, 0 }; | 205 | u8 b1[] = { 0, 0 }; |
205 | struct i2c_msg msg[2] = { | 206 | struct i2c_msg msg[2] = { |
206 | { | 207 | { |
207 | .addr = addr, | 208 | .addr = addr, |
208 | .flags = 0, | 209 | .flags = 0, |
209 | .buf = NULL, | 210 | .buf = b0, |
210 | .len = 0 | 211 | .len = 0 |
211 | }, { | 212 | }, { |
212 | .addr = addr, | 213 | .addr = addr, |