projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9606ce
)
V4L/DVB (8000): tda827x: fix NULL pointer in tda827xa_lna_gain
author
Sigmund Augdal
<
[email protected]
>
Thu, 5 Jun 2008 15:53:08 +0000
(12:53 -0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 5 Jun 2008 13:26:19 +0000
(10:26 -0300)
Check that tda827x_config is defined before attempting to use it.
Signed-off-by: Sigmund Augdal <
[email protected]
>
Signed-off-by: Michael Krufky <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/common/tuners/tda827x.c
patch
|
blob
|
history
diff --git
a/drivers/media/common/tuners/tda827x.c
b/drivers/media/common/tuners/tda827x.c
index d30d2c9094d9b0fcdde74cd3212d9f5cbd700b95..8555d9cf9051031f7643675b4487e65461553d1b 100644
(file)
--- a/
drivers/media/common/tuners/tda827x.c
+++ b/
drivers/media/common/tuners/tda827x.c
@@
-418,13
+418,13
@@
static void tda827xa_lna_gain(struct dvb_frontend *fe, int high,
unsigned char buf[] = {0x22, 0x01};
int arg;
int gp_func;
- struct i2c_msg msg = { .addr = priv->cfg->switch_addr, .flags = 0,
- .buf = buf, .len = sizeof(buf) };
+ struct i2c_msg msg = { .flags = 0, .buf = buf, .len = sizeof(buf) };
if (NULL == priv->cfg) {
dprintk("tda827x_config not defined, cannot set LNA gain!\n");
return;
}
+ msg.addr = priv->cfg->switch_addr;
if (priv->cfg->config) {
if (high)
dprintk("setting LNA to high gain\n");