diff options
author | Johannes Stezenbach <devnull@localhost> | 2005-09-26 21:31:27 +0000 |
---|---|---|
committer | Johannes Stezenbach <devnull@localhost> | 2005-09-26 21:31:27 +0000 |
commit | 806216f8fda8d16aa2423f8e8c97ff3a3600d1a5 (patch) | |
tree | c838ebc09f7b9540fa32a69349026f60f232f5e7 /linux/drivers/media/dvb/frontends/tda10021.c | |
parent | d19b292287e552495f8ee4c5754cb841cd6f2537 (diff) | |
download | mediapointer-dvb-s2-806216f8fda8d16aa2423f8e8c97ff3a3600d1a5.tar.gz mediapointer-dvb-s2-806216f8fda8d16aa2423f8e8c97ff3a3600d1a5.tar.bz2 |
From: Jon Burgess <jburgess@uklinux.net>
Ralph Metzler wrote:
> AFAIR, there is a bug in tda10021.c in tda10021_readreg() which
> references state->frontend.dvb->num
> This is fatal if the frontend is not at the probed address and thus
> not yet registered (no dvb entry set yet -> NULL pointer ...).
The attached patch should get rid of the oops.
Signed-off-by: Jon Burgess <jburgess@uklinux.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda10021.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/tda10021.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda10021.c b/linux/drivers/media/dvb/frontends/tda10021.c index 87d5f4d87..eaf130e66 100644 --- a/linux/drivers/media/dvb/frontends/tda10021.c +++ b/linux/drivers/media/dvb/frontends/tda10021.c @@ -100,8 +100,8 @@ static u8 tda10021_readreg (struct tda10021_state* state, u8 reg) ret = i2c_transfer (state->i2c, msg, 2); if (ret != 2) - printk("DVB: TDA10021(%d): %s: readreg error (ret == %i)\n", - state->frontend.dvb->num, __FUNCTION__, ret); + printk("DVB: TDA10021: %s: readreg error (ret == %i)\n", + __FUNCTION__, ret); return b1[0]; } |