linux/drivers/media
Brian Rogers a08c7c68f7 V4L/DVB: ir-core: Fix null dereferences in the protocols sysfs interface
For some cards, ir_dev->props and ir_dev->raw are both NULL. These cards are
using built-in IR decoding instead of raw, and can't easily be made to switch
protocols.

So upon reading /sys/class/rc/rc?/protocols on such a card, return 'builtin' as
the supported and enabled protocol. Return -EINVAL on any attempts to change
the protocol. And most important of all, don't crash.

Signed-off-by: Brian Rogers <brian@xyzw.org>
Acked-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2010-09-30 07:18:37 -03:00
..
common V4L/DVB: V4L: do not autoselect components on embedded systems 2010-08-08 23:43:02 -03:00
dvb V4L/DVB: dvb: fix smscore_getbuffer() logic 2010-09-27 22:21:59 -03:00
IR V4L/DVB: ir-core: Fix null dereferences in the protocols sysfs interface 2010-09-30 07:18:37 -03:00
radio V4L/DVB: si470x: -EINVAL overwritten in si470x_vidioc_s_tuner() 2010-08-02 16:42:44 -03:00
video V4L/DVB: v4l: s5p-fimc: Fix 3-planar formats handling and pixel offset error on S5PV210 SoCs 2010-09-27 22:39:16 -03:00
Kconfig V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00
Makefile V4L/DVB (13612): IR: Move common IR code to drivers/media/IR 2009-12-16 00:18:42 -02:00