diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-10-22 17:15:39 -0400 |
---|---|---|
committer | Michael Krufky <mkrufky@linuxtv.org> | 2007-10-22 17:15:39 -0400 |
commit | 13158eca8802518b8b4426eb20f86aae1b512461 (patch) | |
tree | 5ab40e2a872584bcd5caea5442a8a3ce9e3297f4 /linux/drivers/media | |
parent | 1c249f720732658d2c39deefcbc5eadd4d81e8bb (diff) | |
download | mediapointer-dvb-s2-13158eca8802518b8b4426eb20f86aae1b512461.tar.gz mediapointer-dvb-s2-13158eca8802518b8b4426eb20f86aae1b512461.tar.bz2 |
tuner-core: improve comments inside function fe_release()
From: Michael Krufky <mkrufky@linuxtv.org>
Explain who is responsible for freeing analog_demod_priv
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
---
linux/drivers/media/video/tuner-core.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
Diffstat (limited to 'linux/drivers/media')
-rw-r--r-- | linux/drivers/media/video/tuner-core.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/linux/drivers/media/video/tuner-core.c b/linux/drivers/media/video/tuner-core.c index f04c53631..9e7cf77e0 100644 --- a/linux/drivers/media/video/tuner-core.c +++ b/linux/drivers/media/video/tuner-core.c @@ -128,7 +128,15 @@ static void fe_release(struct dvb_frontend *fe) fe->ops.tuner_ops.release(fe); fe->ops.analog_demod_ops = NULL; - /* DO NOT kfree(t->fe.analog_demod_priv) */ + + /* DO NOT kfree(fe->analog_demod_priv) + * + * If we are in this function, analog_demod_priv contains a pointer + * to struct tuner *t. This will be kfree'd in tuner_detach(). + * + * Otherwise, fe->ops.analog_demod_ops->release will + * handle the cleanup for analog demodulator modules. + */ fe->analog_demod_priv = NULL; } |