aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBrian Rogers <[email protected]>2010-09-22 08:06:43 -0300
committerMauro Carvalho Chehab <[email protected]>2010-09-30 07:18:37 -0300
commita08c7c68f702e2a2797a4035b6c0a756c4886c26 (patch)
tree4761de745c2260d5832241f82d41d9985e79addb /tools/perf/scripts/python
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 <[email protected]> Acked-by: Jarod Wilson <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions