Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4524c1aba5449d3519d1545f8106811eb73fc72c
Commit:     4524c1aba5449d3519d1545f8106811eb73fc72c
Parent:     af3b0f3f01d299c46837a408e1b9510b8c304e43
Author:     Michael Krufky <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 22 18:15:39 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Fri Jan 25 19:01:11 2008 -0200

    V4L/DVB (6445): tuner-core: improve comments inside function fe_release()
    
    Explain who is responsible for freeing analog_demod_priv
    
    Signed-off-by: Michael Krufky <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/video/tuner-core.c |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 1e9c975..88db8b3 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -103,7 +103,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;
 }
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to