From: Dan Carpenter Date: Thu, 18 Apr 2013 18:21:17 +0000 (-0300) Subject: [media] r820t: memory leak in release() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ef0c87001c50ade70183b5cccbf573ef28320965;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [media] r820t: memory leak in release() I've moved the kfree(fe->tuner_priv) one line earlier, otherwise it is a no-op. Signed-off-by: Dan Carpenter Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/tuners/r820t.c b/drivers/media/tuners/r820t.c index ba033fd6b717..36ddbf1e08b3 100644 --- a/drivers/media/tuners/r820t.c +++ b/drivers/media/tuners/r820t.c @@ -2252,9 +2252,8 @@ static int r820t_release(struct dvb_frontend *fe) mutex_unlock(&r820t_list_mutex); - fe->tuner_priv = NULL; - kfree(fe->tuner_priv); + fe->tuner_priv = NULL; return 0; }