提交 4524c1ab 编写于 作者: M Michael Krufky 提交者: Mauro Carvalho Chehab

V4L/DVB (6445): tuner-core: improve comments inside function fe_release()

Explain who is responsible for freeing analog_demod_priv
Signed-off-by: NMichael Krufky <mkrufky@linuxtv.org>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
上级 af3b0f3f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册