linux_dsm_epyc7002/drivers/media
Mauro Carvalho Chehab 4001dfb4b5 [media] cx231xx-i2c: handle errors with cx231xx_get_i2c_adap()
The cx231xx_get_i2c_adap() function should return the I2C
adapter that will be used to talk with a device. It should never
be NULL, as otherwise the driver will try to dereference a
null pointer.

We might instead fix the callers, but if this condition
ever happens, it is really a driver bug, because i2c_port
should always be a value from enum CX231XX_I2C_MASTER_PORT.

Found when checking the code due to this bug:

[   39.769021] BUG: unable to handle kernel NULL pointer dereference at 0000000000000002
[   39.769105] IP: [<ffffffff81638393>] i2c_master_send+0x13/0x70

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-09-05 15:26:34 -03:00
..
common [media] v4l2-tpg-core: drop SYCC, use higher precision 601 conversion matrix 2016-08-24 08:36:11 -03:00
dvb-core [media] dvb_frontend: Use memdup_user() rather than duplicating its implementation 2016-08-24 17:20:45 -03:00
dvb-frontends [media] mb86a20s: fix demod settings 2016-09-05 15:26:30 -03:00
firewire [media] dvb: modify core to implement interfaces/entities at MC new gen 2016-01-11 12:18:52 -02:00
i2c [media] tvp5150: use sd internal ops .registered instead .registered_async 2016-08-24 16:49:18 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] cx23885: Add support for Hauppauge WinTV quadHD ATSC version 2016-08-24 16:20:16 -03:00
platform [media] m2m-deinterlace: Fix error print during probe 2016-08-25 09:47:12 -03:00
radio [media] media: radio: si470x: radio-si470x-usb: don't print error when allocating urb fails 2016-08-24 08:46:58 -03:00
rc [media] redrat3: fix sparse warning 2016-08-25 09:46:39 -03:00
tuners [media] tea5767: use module prefix on printed messages 2016-09-05 15:26:28 -03:00
usb [media] cx231xx-i2c: handle errors with cx231xx_get_i2c_adap() 2016-09-05 15:26:34 -03:00
v4l2-core [media] vb2: Fix vb2_core_dqbuf() kernel-doc 2016-08-24 17:15:55 -03:00
cec-edid.c [media] cec-edid: add module for EDID CEC helper functions 2016-06-28 09:45:51 -03:00
Kconfig [media] cec: fix Kconfig dependency problems 2016-07-08 18:34:00 -03:00
Makefile [media] cec: fix Kconfig dependency problems 2016-07-08 18:34:00 -03:00
media-device.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-devnode.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-entity.c [media] v4l2-core: Add support for touch devices 2016-08-23 16:28:04 -03:00