projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7a12fd
)
[media] r820t: memory leak in release()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 18 Apr 2013 18:21:17 +0000
(15:21 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Thu, 25 Apr 2013 13:30:42 +0000
(10:30 -0300)
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>
drivers/media/tuners/r820t.c
patch
|
blob
|
history
diff --git
a/drivers/media/tuners/r820t.c
b/drivers/media/tuners/r820t.c
index ba033fd6b7171c974dc0a944811efa0b83c99620..36ddbf1e08b3c070e0b3f7ff380b36bfb83f0518 100644
(file)
--- 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;
}