diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-08-02 14:26:27 +0200 |
---|---|---|
committer | Patrick Boettcher <pb@linuxtv.org> | 2006-08-02 14:26:27 +0200 |
commit | b5d24e3fdbcb2224e74af148395d4cca2b094384 (patch) | |
tree | 172ac60ea6f4c5fecda54820f4d13eea3df1c4b4 /linux/drivers/media/dvb/frontends/dib3000mc.c | |
parent | 13fdda6d96be65a0ccdca2c56355808fa130ee8f (diff) | |
download | mediapointer-dvb-s2-b5d24e3fdbcb2224e74af148395d4cca2b094384.tar.gz mediapointer-dvb-s2-b5d24e3fdbcb2224e74af148395d4cca2b094384.tar.bz2 |
DiB3000MC: set FE to NULL after being freed
From: Patrick Boettcher <pb@linuxtv.org>
DiB3000MC: set FE to NULL after being freed
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/dib3000mc.c')
-rw-r--r-- | linux/drivers/media/dvb/frontends/dib3000mc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/dib3000mc.c b/linux/drivers/media/dvb/frontends/dib3000mc.c index 3e68fd8e3..0a1369cc9 100644 --- a/linux/drivers/media/dvb/frontends/dib3000mc.c +++ b/linux/drivers/media/dvb/frontends/dib3000mc.c @@ -908,9 +908,10 @@ int dib3000mc_attach(struct i2c_adapter *i2c_adap, int no_of_demods, u8 default_ return 0; error: - for (k = 0; k < num; k++) + for (k = 0; k < num; k++) { kfree(demod[k]->demodulator_priv); - + demod[k] = NULL; + } return -EINVAL; } |