OpenCloudOS-Kernel/drivers/media/pci/cx88
Hans Verkuil 609c4c12af [media] cx88: fix NULL pointer dereference
This fixes a NULL pointer deference when loading the cx88_dvb module for a
Hauppauge HVR4000.
The bugzilla bug report is here:
https://bugzilla.kernel.org/show_bug.cgi?id=56271
The cause is that the wm8775 is optional, so even though the board info says
there is one, it doesn't have to be there. Checking whether the module was
actually loaded is much safer.
Note that this driver is quite buggy when it comes to unloading and reloading
modules. Unloading cx8800 and reloading it again will still cause a crash,
most likely because either the i2c bus isn't unloaded at the right time and/or
the v4l2_device_unregister isn't called at the right time.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reported-by: Sebastian Frei <sebastian@familie-frei.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-06-08 20:24:56 -03:00
..
Kconfig [media] make the other drivers take use of the new ts2020 driver 2012-12-27 19:27:15 -02:00
Makefile [media] btcx-risc: move from media/i2c to media/common 2013-02-08 16:11:25 -02:00
cx88-alsa.c [media] cx88: fix NULL pointer dereference 2013-06-08 20:24:56 -03:00
cx88-blackbird.c [media] v4l2: pass std by value to the write-only s_std ioctl 2013-03-24 06:47:00 -03:00
cx88-cards.c [media] cx88: make core less verbose 2013-04-28 12:40:52 -03:00
cx88-core.c [media] cx88: make core less verbose 2013-04-28 12:40:52 -03:00
cx88-dsp.c
cx88-dvb.c [media] cx88: kernel bz#9476: Fix tone setting for Nova-S+ model 92001 2013-04-08 06:56:47 -03:00
cx88-i2c.c [media] cx88: Replace memcpy with struct assignment 2012-12-27 19:01:51 -02:00
cx88-input.c [media] rc-core: add separate defines for protocol bitmaps and numbers 2012-10-27 11:49:51 -02:00
cx88-mpeg.c [media] cx88: Fix unsafe locking in suspend-resume 2013-04-22 10:08:30 -03:00
cx88-reg.h
cx88-tvaudio.c [media] drivers/media: Remove unnecessary semicolon 2012-10-07 09:15:18 -03:00
cx88-vbi.c
cx88-video.c [media] cx88: fix NULL pointer dereference 2013-06-08 20:24:56 -03:00
cx88-vp3054-i2c.c [media] cx88: Replace memcpy with struct assignment 2012-12-27 19:01:51 -02:00
cx88-vp3054-i2c.h [media] use IS_ENABLED() macro 2013-02-06 09:24:09 -02:00
cx88.h [media] cx88: make core less verbose 2013-04-28 12:40:52 -03:00