kernel-ark/drivers/media/usb/em28xx
Colin Ian King 51fa3b70d2 media: em28xx: Don't use ops->suspend if it is NULL
The call to ops->suspend for the dev->dev_next case can currently
trigger a call on a null function pointer if ops->suspend is null.
Skip over the use of function ops->suspend if it is null.

Addresses-Coverity: ("Dereference after null check")

Fixes: be7fd3c3a8 ("media: em28xx: Hauppauge DualHD second tuner functionality")
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-10-05 09:38:18 +02:00
..
em28xx-audio.c media: em28xx-audio: use semicolons rather than commas to separate statements 2020-11-16 10:31:06 +01:00
em28xx-camera.c MAINTAINERS & files: Canonize the e-mails I use at files 2018-05-04 06:21:06 -04:00
em28xx-cards.c Linux 5.15-rc4 2021-10-04 07:52:13 +02:00
em28xx-core.c media: em28xx: Don't use ops->suspend if it is NULL 2021-10-05 09:38:18 +02:00
em28xx-dvb.c media: em28xx: fix memory leak 2021-04-06 10:36:58 +02:00
em28xx-i2c.c media: em28xx-core: Fix i2c error debug 2021-02-05 23:39:04 +01:00
em28xx-input.c media: em28xx-input: fix refcount bug in em28xx_usb_disconnect 2021-08-04 14:43:49 +02:00
em28xx-reg.h media: usb: fix several typos 2019-03-01 09:43:27 -05:00
em28xx-v4l.h media: update/fix my e-mail on some places 2018-05-10 07:27:15 -04:00
em28xx-vbi.c media: em28xx: Add SPDX license tags where needed 2018-03-06 05:54:52 -05:00
em28xx-video.c media: media/usb: rename VFL_TYPE_GRABBER to _VIDEO 2020-02-24 16:53:16 +01:00
em28xx.h media: em28xx/em28xx.h: Remove duplicate struct declaration 2021-04-06 16:11:54 +02:00
Kconfig media: em28xx: Add support for Hauppauge USB QuadHD 2021-02-05 23:40:15 +01:00
Makefile media: prefix header search paths with $(srctree)/ 2019-05-18 11:49:56 +09:00