diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-04-18 14:21:17 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-04-25 09:30:42 -0400 |
commit | ef0c87001c50ade70183b5cccbf573ef28320965 (patch) | |
tree | 62e4b557b5c0339e7ccad16f65ea4f7771f6688c /drivers/media | |
parent | f7a12fdfd6b6a6f37827d213e67930b945d3081d (diff) |
[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 <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/tuners/r820t.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) | |||
2252 | 2252 | ||
2253 | mutex_unlock(&r820t_list_mutex); | 2253 | mutex_unlock(&r820t_list_mutex); |
2254 | 2254 | ||
2255 | fe->tuner_priv = NULL; | ||
2256 | |||
2257 | kfree(fe->tuner_priv); | 2255 | kfree(fe->tuner_priv); |
2256 | fe->tuner_priv = NULL; | ||
2258 | 2257 | ||
2259 | return 0; | 2258 | return 0; |
2260 | } | 2259 | } |