]> git.baikalelectronics.ru Git - kernel.git/commit
[media] frontends/ix2505v: Remember to free allocated memory in failure path
authorJesper Juhl <jj@chaosbits.net>
Sun, 2 Jan 2011 19:14:03 +0000 (16:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 Jan 2011 13:45:44 +0000 (11:45 -0200)
commit8b369f7e6b3cd3d3f56ce70ba8e69fbcb3c7d498
tree347fff9429e47ee8f8360fe26284e026c285405f
parent9b5341bb960ed290b3d845ee713df52bf86a986d
[media] frontends/ix2505v: Remember to free allocated memory in failure path

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