projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a63d601
)
[media] frontends/ix2505v: Remember to free allocated memory in failure path
author
Jesper Juhl
<jj@chaosbits.net>
Sun, 2 Jan 2011 19:14:03 +0000
(16:14 -0300)
committer
Mauro Carvalho Chehab
<mchehab@redhat.com>
Wed, 19 Jan 2011 13:45:44 +0000
(11:45 -0200)
We may leak the storage allocated to 'state' in
drivers/media/dvb/frontends/ix2505v.c::ix2505v_attach() on error, as
it is too early to be able to call ix2505v_release().
This patch makes sure we free the allocated memory in the failure case.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/ix2505v.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/frontends/ix2505v.c
b/drivers/media/dvb/frontends/ix2505v.c
index
6360c68
..
6c2e929
100644
(file)
--- a/
drivers/media/dvb/frontends/ix2505v.c
+++ b/
drivers/media/dvb/frontends/ix2505v.c
@@
-311,7
+311,7
@@
struct dvb_frontend *ix2505v_attach(struct dvb_frontend *fe,
return fe;
error:
-
ix2505v_release(f
e);
+
kfree(stat
e);
return NULL;
}
EXPORT_SYMBOL(ix2505v_attach);