aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/videobuf-dma-contig.c
diff options
context:
space:
mode:
authorBrian Rogers <brian@xyzw.org>2010-09-22 07:06:43 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-09-30 06:18:37 -0400
commita08c7c68f702e2a2797a4035b6c0a756c4886c26 (patch)
tree4761de745c2260d5832241f82d41d9985e79addb /drivers/media/video/videobuf-dma-contig.c
parentddc79e0fdc16c05c3ff7f9b6ae9052bda0506108 (diff)
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>
Diffstat (limited to 'drivers/media/video/videobuf-dma-contig.c')
0 files changed, 0 insertions, 0 deletions