linux/drivers/media/IR
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
..
keymaps V4L/DVB: IR: extend MCE keymap 2010-09-27 22:21:56 -03:00
ene_ir.c V4L/DVB: IR: Port ene driver to new IR subsystem and enable it 2010-08-08 23:43:00 -03:00
ene_ir.h V4L/DVB: IR: Port ene driver to new IR subsystem and enable it 2010-08-08 23:43:00 -03:00
imon.c V4L/DVB: IR/imon: remove bad ir_input_dev use 2010-08-08 23:42:57 -03:00
ir-core-priv.h V4L/DVB: IR: extend interfaces to support more device settings 2010-08-08 23:43:00 -03:00
ir-functions.c V4L/DVB: ir-core: move subsystem internal calls to ir-core-priv.h 2010-05-19 12:57:04 -03:00
ir-jvc-decoder.c V4L/DVB: IR: JVC: make repeat work 2010-08-08 23:42:59 -03:00
ir-keytable.c V4L/DVB: IR: fix keys beeing stuck down forever 2010-09-27 22:21:55 -03:00
ir-lirc-codec.c V4L/DVB: IR: fix duty cycle capability 2010-09-27 22:21:54 -03:00
ir-nec-decoder.c V4L/DVB: IR: NECX: support repeat 2010-08-08 23:42:59 -03:00
ir-raw-event.c V4L/DVB: IR: ir-raw-event: null pointer dereference 2010-09-27 22:21:46 -03:00
ir-rc5-decoder.c V4L/DVB: ir-core: move decoding state to ir_raw_event_ctrl 2010-08-02 14:55:15 -03:00
ir-rc6-decoder.c V4L/DVB: ir-core: move decoding state to ir_raw_event_ctrl 2010-08-02 14:55:15 -03:00
ir-sony-decoder.c V4L/DVB: ir-core: move decoding state to ir_raw_event_ctrl 2010-08-02 14:55:15 -03:00
ir-sysfs.c V4L/DVB: ir-core: Fix null dereferences in the protocols sysfs interface 2010-09-30 07:18:37 -03:00
Kconfig V4L/DVB: Fix IR_CORE dependencies 2010-08-12 15:07:48 -03:00
lirc_dev.c V4L/DVB: IR/lirc: make lirc userspace and staging modules buildable 2010-08-02 16:42:55 -03:00
Makefile V4L/DVB: IR: Port ene driver to new IR subsystem and enable it 2010-08-08 23:43:00 -03:00
mceusb.c V4L/DVB: mceusb: add two new ASUS device IDs 2010-09-27 22:21:52 -03:00
rc-map.c V4L/DVB: IR: Allow not to compile keymaps in 2010-08-08 23:43:00 -03:00
streamzap.c V4L/DVB: IR: put newly ported streamzap driver in proper home 2010-08-08 23:42:58 -03:00