linux/drivers/media
Colin Ian King 7266dda2f1 media: cx23885: Fix snd_card_free call on null card pointer
Currently a call to snd_card_new that fails will set card with a NULL
pointer, this causes a null pointer dereference on the error cleanup
path when card it passed to snd_card_free. Fix this by adding a new
error exit path that does not call snd_card_free and exiting via this
new path.

Addresses-Coverity: ("Explicit null dereference")

Fixes: 9e44d63246 ("[media] cx23885: Add ALSA support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2021-09-30 10:08:00 +02:00
..
cec media: cec-pin: fix off-by-one SFT check 2021-09-30 10:07:54 +02:00
common media: videobuf2: handle non-contiguous DMA allocations 2021-09-30 10:07:57 +02:00
dvb-core media: videobuf2: add queue memory coherency parameter 2021-09-30 10:07:57 +02:00
dvb-frontends media: cxd2820r: include the right header 2021-09-30 10:07:43 +02:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-09-30 10:07:54 +02:00
i2c media: i2c: ths8200 needs V4L2_ASYNC 2021-09-30 10:07:58 +02:00
mc media: Request API is no longer experimental 2021-09-30 10:07:55 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci media: cx23885: Fix snd_card_free call on null card pointer 2021-09-30 10:08:00 +02:00
platform media: rcar_drif: select CONFIG_V4L2_ASYNC 2021-09-30 10:07:59 +02:00
radio media: si470x: Avoid card name truncation 2021-09-30 10:08:00 +02:00
rc media: rc: sunxi-cir: Make use of the helper function devm_platform_ioremap_resource() 2021-09-30 10:07:51 +02:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-09-30 10:07:40 +02:00
test-drivers media: vimc: Enable set resolution at the scaler src pad 2021-09-30 10:07:59 +02:00
tuners media: tuners: mxl5007t: Removed unnecessary 'return' 2021-09-30 10:07:40 +02:00
usb media: tm6000: Avoid card name truncation 2021-09-30 10:08:00 +02:00
v4l2-core media: videobuf2: handle V4L2_MEMORY_FLAG_NON_COHERENT flag 2021-09-30 10:07:57 +02:00
Kconfig media: Correct 'so' 2021-03-22 11:52:09 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00