diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-08-08 20:48:11 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 16:53:48 +0200 |
commit | 4e66c97c9299d53f1d9167e42b05357f023099c8 (patch) | |
tree | 43e0ad4156bfe890a59b0bb2c54d8cec5ad886d8 /drivers/media/dvb/frontends/dib3000mc.c | |
parent | V4L/DVB (4464): FIX_ AverTV A800 trouble (diff) | |
download | linux-4e66c97c9299d53f1d9167e42b05357f023099c8.tar.xz linux-4e66c97c9299d53f1d9167e42b05357f023099c8.zip |
V4L/DVB: DiB3000MC: set FE to NULL after being freed
DiB3000MC: set FE to NULL after being freed
Signed-off-by: Patrick Boettcher <pb@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends/dib3000mc.c')
-rw-r--r-- | drivers/media/dvb/frontends/dib3000mc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/dib3000mc.c b/drivers/media/dvb/frontends/dib3000mc.c index cc41c6bcdaf6..04ce6276f873 100644 --- a/drivers/media/dvb/frontends/dib3000mc.c +++ b/drivers/media/dvb/frontends/dib3000mc.c @@ -899,9 +899,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; } |