diff options
author | Colin Ian King <colin.king@canonical.com> | 2021-08-04 11:50:10 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-09-30 11:08:00 +0300 |
commit | 7266dda2f1dfe151b12ef0c14eb4d4e622fb211c (patch) | |
tree | fb39bb3b2b6f1021e17c57c2de1ecb8cf6572c42 /drivers/media/usb/usbtv | |
parent | 42bb98e420d454fef3614b70ea11cc59068395f6 (diff) | |
download | linux-7266dda2f1dfe151b12ef0c14eb4d4e622fb211c.tar.xz |
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: 9e44d63246a9 ("[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>
Diffstat (limited to 'drivers/media/usb/usbtv')
0 files changed, 0 insertions, 0 deletions