alistair23-linux/drivers/staging/media/as102
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
..
as10x_cmd.c [media] staging/as102: convert set_fontend to use DVBv5 parameters 2011-12-31 09:49:02 -02:00
as10x_cmd.h [media] as102: add __packed attribute to structs defined inside packed structs 2012-03-19 14:26:02 -03:00
as10x_cmd_cfg.c [media] staging: as102: Eliminate as10x_handle_t alias 2011-11-08 11:33:25 -02:00
as10x_cmd_stream.c [media] staging: as102: Eliminate as10x_handle_t alias 2011-11-08 11:33:25 -02:00
as10x_handle.h [media] staging: as102: Eliminate as10x_handle_t alias 2011-11-08 11:33:25 -02:00
as10x_types.h [media] as102: add __packed attribute to structs defined inside packed structs 2012-03-19 14:26:02 -03:00
as102_drv.c [media] staging: Fix comments and some typos in staging/media/* 2012-03-19 14:26:16 -03:00
as102_drv.h [media] as102: set optimal eLNA config values for each device 2012-03-19 14:26:03 -03:00
as102_fe.c [media] staging: Fix comments and some typos in staging/media/* 2012-03-19 14:26:16 -03:00
as102_fw.c staging/media/as102: Don't call release_firmware() on uninitialized variable 2012-04-10 09:17:33 -07:00
as102_fw.h [media] as102: add __packed attribute to structs defined inside packed structs 2012-03-19 14:26:02 -03:00
as102_usb_drv.c [media] as102: set optimal eLNA config values for each device 2012-03-19 14:26:03 -03:00
as102_usb_drv.h [media] staging: as102: Add support for Sky Italia Digital Key based on the same chip 2011-11-24 19:34:48 -02:00
Kconfig [media] staging: as102: Make the driver select CONFIG_FW_LOADER 2011-11-08 11:28:37 -02:00
Makefile [media] staging: as102: Remove leftovers of the SPI bus driver 2011-11-08 11:28:06 -02:00