kernel-fxtec-pro1x/drivers/staging/media
Jesper Juhl 4ae2e594b7 [media] staging/media/as102: Don't call release_firmware() on uninitialized variable
If, in drivers/staging/media/as102/as102_fw.c::as102_fw_upload(), the call
	cmd_buf = kzalloc(MAX_FW_PKT_SIZE, GFP_KERNEL);
should fail and return NULL so that we jump to the 'error:' label,
then we'll end up calling 'release_firmware(firmware);' with
'firmware' still uninitialized - not good.

The easy fix is to just initialize 'firmware' to NULL when we declare
it, since release_firmware() deals gracefully with being passed NULL
pointers.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2012-04-10 20:33:27 -03:00
..
as102 [media] staging/media/as102: Don't call release_firmware() on uninitialized variable 2012-04-10 20:33:27 -03:00
cxd2099
dt3155v4l [media] Staging: dt3155v4l: probe() always fails 2012-01-06 11:06:53 -02:00
easycap [media] staging: easycap: Fix incorrect comment 2012-03-08 11:32:55 -03:00
go7007 [media] staging: Fix comments and some typos in staging/media/* 2012-03-19 14:26:16 -03:00
lirc [media] lirc: delete unused init/exit function prototypes 2012-04-10 15:37:44 -03:00
solo6x10 [media] Staging: media: solo6x10: core.c Fix some coding style issue 2012-03-19 15:44:00 -03:00
Kconfig [media] staging: Fix comments and some typos in staging/media/* 2012-03-19 14:26:16 -03:00
Makefile