From: Gianluca Gennari Date: Sun, 2 Jun 2013 17:26:15 +0000 (-0300) Subject: [media] r820t: do not double-free fe->tuner_priv in r820t_release() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=4aab0398e003ac2effae98ba66a012ed715967ba;p=openwrt%2Fstaging%2Fblogic.git [media] r820t: do not double-free fe->tuner_priv in r820t_release() fe->tuner_priv is already freed by hybrid_tuner_release_state(). Signed-off-by: Gianluca Gennari Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index 4835021aa3b6..64f97389d5b0 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c @@ -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;