linux/drivers/media/usb/em28xx
Mauro Carvalho Chehab fd901b6e81 media: em28xx: Don't use ops->resume if NULL
Changeset  be7fd3c3a8 ("media: em28xx: Hauppauge DualHD
second tuner functionality") introduced a potential NULL pointer
dereference, as pointed by Coverity:

CID 1434731 (#1 of 1): Dereference after null check (FORWARD_NULL)16. var_deref_op: Dereferencing null pointer ops->resume.

var_compare_op: Comparing ops->resume to null implies that ops->resume might be null.
1174                if (ops->resume)
1175                        ops->resume(dev);
1176                if (dev->dev_next)
1177                        ops->resume(dev->dev_next);

Fixes: be7fd3c3a8 ("media: em28xx: Hauppauge DualHD second tuner functionality")

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
2018-05-04 08:59:02 -04:00
..
Kconfig media: fix usage of whitespaces and on indentation 2018-01-04 13:12:01 -05:00
Makefile media: don't include drivers/media/i2c at cflags 2017-12-28 14:14:09 -05:00
em28xx-audio.c media: em28xx-audio: fix coding style issues 2018-03-06 05:54:53 -05:00
em28xx-camera.c media: em28xx-camera: fix coding style issues 2018-03-06 05:54:53 -05:00
em28xx-cards.c media: em28xx-cards: fix em28xx_duplicate_dev() 2018-03-08 06:06:51 -05:00
em28xx-core.c media: em28xx: Don't use ops->resume if NULL 2018-05-04 08:59:02 -04:00
em28xx-dvb.c media: em28xx: Enable inversion for Solo/Dual HD DVB models 2018-03-06 07:47:30 -05:00
em28xx-i2c.c media: em28xx-i2c: fix most coding style issues 2018-03-06 05:54:55 -05:00
em28xx-input.c media: em28xx-input: improve error handling code 2018-03-23 07:33:22 -04:00
em28xx-reg.h media: em28xx-reg.h: Fix coding style issues 2018-03-06 05:54:52 -05:00
em28xx-v4l.h media: em28xx: Add SPDX license tags where needed 2018-03-06 05:54:52 -05:00
em28xx-vbi.c media: em28xx: Add SPDX license tags where needed 2018-03-06 05:54:52 -05:00
em28xx-video.c media: add tuner standby op, use where needed 2018-03-21 12:05:39 -04:00
em28xx.h media: em28xx.h: Fix most coding style issues 2018-03-06 05:54:52 -05:00