aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends
diff options
context:
space:
mode:
authorPatrick Boettcher <pb@linuxtv.org>2006-08-08 14:48:11 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-09-26 10:53:48 -0400
commit4e66c97c9299d53f1d9167e42b05357f023099c8 (patch)
tree43e0ad4156bfe890a59b0bb2c54d8cec5ad886d8 /drivers/media/dvb/frontends
parenta2c00a0eee751e298c916508b6fa5cee0d7d188d (diff)
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.c5
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_
899 return 0; 899 return 0;
900 900
901error: 901error:
902 for (k = 0; k < num; k++) 902 for (k = 0; k < num; k++) {
903 kfree(demod[k]->demodulator_priv); 903 kfree(demod[k]->demodulator_priv);
904 904 demod[k] = NULL;
905 }
905 return -EINVAL; 906 return -EINVAL;
906} 907}
907 908