diff options
author | 2010-09-22 08:06:43 -0300 | |
---|---|---|
committer | 2010-09-30 07:18:37 -0300 | |
commit | a08c7c68f702e2a2797a4035b6c0a756c4886c26 (patch) | |
tree | 4761de745c2260d5832241f82d41d9985e79addb /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | V4L/DVB: v4l: s5p-fimc: Fix 3-planar formats handling and pixel offset error on S5PV210 SoCs (diff) | |
download | linux-dev-a08c7c68f702e2a2797a4035b6c0a756c4886c26.tar.xz linux-dev-a08c7c68f702e2a2797a4035b6c0a756c4886c26.zip |
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 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions