OpenCloudOS-Kernel/drivers/staging/media
Jesper Juhl 401c90e56c 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-04-10 09:17:33 -07:00
..
as102 staging/media/as102: Don't call release_firmware() on uninitialized variable 2012-04-10 09:17:33 -07:00
cxd2099 staging: Move media drivers to staging/media 2011-11-03 07:59:03 -02:00
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 Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07:00
lirc Disintegrate and delete asm/system.h 2012-03-28 15:58:21 -07: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 staging: Move media drivers to staging/media 2011-11-03 07:59:03 -02:00