]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
[media] mceusb: buffer parsing fixups for 1st-gen device
authorJarod Wilson <jarod@redhat.com>
Tue, 9 Nov 2010 21:41:46 +0000 (18:41 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 20 Dec 2010 16:11:08 +0000 (14:11 -0200)
commit29b4494b1ff0157c1816ce8e2aea2abfdeb7f763
tree287388322ddb0c05accb6faf1e9959110f3a29d4
parent1cd50f25614226e99ac7a1518311e8474ea024e3
[media] mceusb: buffer parsing fixups for 1st-gen device

If we pass in an offset, we shouldn't skip 2 bytes. And the first-gen
hardware generates a constant stream of interrupts, always with two
header bytes, and if there's been no IR, with nothing else. Bail from
ir processing without calling ir_handle_raw_event when we get such a
buffer delivered to us.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/IR/mceusb.c