diff options
author | Sean Young | 2016-11-09 17:13:34 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2016-11-22 13:34:55 +0100 |
commit | 2bfc04d64db66fa62021a988740e8028f018b9c3 (patch) | |
tree | 94a5c555fa758906b083deb3c10ca92168ef8d6e /drivers/media/rc | |
parent | [media] v4l: compat: Prevent allocating excessive amounts of memory (diff) | |
download | kernel-qcow2-linux-2bfc04d64db66fa62021a988740e8028f018b9c3.tar.gz kernel-qcow2-linux-2bfc04d64db66fa62021a988740e8028f018b9c3.tar.xz kernel-qcow2-linux-2bfc04d64db66fa62021a988740e8028f018b9c3.zip |
[media] sanyo decoder: address was being truncated
The address is 13 bits but it was stuffed in an u8, so 5 bits are
missing from the scancode.
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/rc')
-rw-r--r-- | drivers/media/rc/ir-sanyo-decoder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/rc/ir-sanyo-decoder.c b/drivers/media/rc/ir-sanyo-decoder.c index 7331e5e7c497..b07d9caebeb1 100644 --- a/drivers/media/rc/ir-sanyo-decoder.c +++ b/drivers/media/rc/ir-sanyo-decoder.c @@ -56,7 +56,8 @@ static int ir_sanyo_decode(struct rc_dev *dev, struct ir_raw_event ev) { struct sanyo_dec *data = &dev->raw->sanyo; u32 scancode; - u8 address, command, not_command; + u16 address; + u8 command, not_command; if (!is_timing_event(ev)) { if (ev.reset) { |