linux/drivers/media/pci/cx23885
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
..
altera-ci.c
altera-ci.h
cimax2.c
cimax2.h
cx23885-417.c
cx23885-alsa.c media: cx23885: Fix snd_card_free call on null card pointer 2021-09-30 10:08:00 +02:00
cx23885-av.c
cx23885-av.h
cx23885-cards.c media: cx23885: Fix various Hauppauge device analog capture inputs 2021-03-11 11:59:45 +01:00
cx23885-core.c media: cx23885: switch from 'pci_' to 'dma_' API 2021-04-06 16:07:10 +02:00
cx23885-dvb.c
cx23885-f300.c
cx23885-f300.h
cx23885-i2c.c
cx23885-input.c
cx23885-input.h
cx23885-ioctl.c
cx23885-ioctl.h
cx23885-ir.c
cx23885-ir.h
cx23885-reg.h
cx23885-vbi.c
cx23885-video.c media: pci: cx23855-video.c: remove duplicate argument in 'or' 2020-08-29 08:03:03 +02:00
cx23885-video.h
cx23885.h media: cx23885-alsa: number of pages should be unsigned long 2020-09-03 11:13:03 +02:00
cx23888-ir.c media: rc: harmonize infrared durations to microseconds 2020-09-03 16:18:55 +02:00
cx23888-ir.h
Kconfig
Makefile
netup-eeprom.c
netup-eeprom.h
netup-init.c
netup-init.h