diff options
author | Patrick Boettcher <pb@linuxtv.org> | 2006-08-08 15:48:11 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2006-09-26 11:53:48 -0300 |
commit | 4e66c97c9299d53f1d9167e42b05357f023099c8 (patch) | |
tree | 43e0ad4156bfe890a59b0bb2c54d8cec5ad886d8 /drivers/media/dvb/frontends | |
parent | a2c00a0eee751e298c916508b6fa5cee0d7d188d (diff) | |
download | blackbird-op-linux-4e66c97c9299d53f1d9167e42b05357f023099c8.tar.gz blackbird-op-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')
-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; } |