summaryrefslogtreecommitdiff
path: root/drivers/media/dvb/ttpci/Makefile
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2011-02-15 13:10:08 +0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2011-03-22 02:32:36 +0300
commit07988007f8dd2827ba1eb39e6e3c5bbb29cfc30b (patch)
tree9ddac7f907a90e7ca9e433122c058ecf80c82c77 /drivers/media/dvb/ttpci/Makefile
parent57f05bfa2e90fe52fa36755f4cb91e6f495f8353 (diff)
downloadlinux-07988007f8dd2827ba1eb39e6e3c5bbb29cfc30b.tar.xz
[media] stv090x: handle allocation failures
kmalloc() can fail so check whether state->internal is NULL. append_internal() can return NULL on allocation failures so check that. Also if we hit the error condition later in the function then there is a memory leak and we need to call remove_dev() to fix it. Also Oliver Endriss pointed out an additional leak that I missed in the first version of this patch. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Oliver Endriss <o.endriss@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/ttpci/Makefile')
0 files changed, 0 insertions, 0 deletions