linux/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
dt3155v4l
easycap
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
Kconfig
Makefile