linux/drivers/media
Dan Carpenter 07988007f8 [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>
2011-03-21 20:32:36 -03:00
..
common [media] xc5000: add set_config and other 2011-03-21 20:32:19 -03:00
dvb [media] stv090x: handle allocation failures 2011-03-21 20:32:36 -03:00
radio [media] drivers:media:radio: Update Kconfig and Makefile for wl128x FM driver 2011-03-21 20:32:36 -03:00
rc [media] technisat-usb2: added driver for Technisat's USB2.0 DVB-S/S2 receiver 2011-03-21 20:31:33 -03:00
video [media] ivtv: yuv: handle get_user_pages() -errno returns 2011-03-21 20:32:35 -03:00
Kconfig [media] dabusb: Move it to staging to be deprecated 2010-12-29 08:17:15 -02:00
Makefile [media] rename drivers/media/IR to drives/media/rc 2010-12-29 08:16:36 -02:00