media: rc: clean up leader pulse/space for manchester encoding
authorSean Young <sean@mess.org>
Fri, 5 Jan 2018 13:26:51 +0000 (08:26 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 23 Jan 2018 12:26:50 +0000 (07:26 -0500)
commitddf9c1bb3d2ae24a216237d8195bb31ff632d8e5
treeba9dcf0d8b1e87c6e3f67c4e4f5af6c2798e7993
parente3cd973429ff7d05480b3889a9a6f4b658083137
media: rc: clean up leader pulse/space for manchester encoding

The IR rc6 encoder sends the header using manchester encoding using 0
bits, which causes the following:

UBSAN: Undefined behaviour in drivers/media/rc/rc-ir-raw.c:247:6
shift exponent 4294967295 is too large for 64-bit type 'long long unsigned int'

So, allow the leader code to send a pulse and space and remove the unused
pulse_space_start field.

Cc: Antti Seppälä <a.seppala@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/rc/ir-mce_kbd-decoder.c
drivers/media/rc/ir-rc5-decoder.c
drivers/media/rc/ir-rc6-decoder.c
drivers/media/rc/rc-core-priv.h
drivers/media/rc/rc-ir-raw.c