[media] r820t: do not double-free fe->tuner_priv in r820t_release()
authorGianluca Gennari <gennarone@gmail.com>
Sun, 2 Jun 2013 17:26:15 +0000 (14:26 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sat, 8 Jun 2013 22:59:36 +0000 (19:59 -0300)
fe->tuner_priv is already freed by hybrid_tuner_release_state().

Signed-off-by: Gianluca Gennari <gennarone@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/tuners/r820t.c

index 4835021aa3b6c21239123e01a4ae05436afd41ff..64f97389d5b037bf41151ee0ecd4837f96cb9041 100644 (file)
@@ -2256,7 +2256,6 @@ static int r820t_release(struct dvb_frontend *fe)
 
        mutex_unlock(&r820t_list_mutex);
 
-       kfree(fe->tuner_priv);
        fe->tuner_priv = NULL;
 
        return 0;