linux/drivers/platform/chrome
Emil Karlson d4d2313a3c
mfd: cros-ec: copy the whole event in get_next_event_xfer
Commit 57e94c8b97 caused cros-ec keyboard events
be truncated on many chromebooks so that Left and Right keys on Column 12 were
always 0. Use ret as memcpy len to fix this.

The old code was using ec_dev->event_size, which is the event payload/data size
excluding event_type header, for the length of the memcpy operation. Use ret
as memcpy length to avoid the off by one and copy the whole msg->data.

Fixes: 57e94c8b97 ("mfd: cros-ec: Increase maximum mkbp event size")

Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Tested-by: Emil Renner Berthing <kernel@esmil.dk>
Signed-off-by: Emil Karlson <jekarlson@gmail.com>
Signed-off-by: Benson Leung <bleung@chromium.org>
2018-10-09 20:57:30 -07:00
..
Kconfig platform/chrome: Move cros-ec transport drivers to drivers/platform. 2018-07-03 12:40:06 -07:00
Makefile platform/chrome: Move cros-ec transport drivers to drivers/platform. 2018-07-03 12:40:06 -07:00
chromeos_laptop.c platform/chrome: chromeos_laptop: fix touchpad button mapping on Celes 2018-05-29 15:11:04 -07:00
chromeos_pstore.c dmi: Mark all struct dmi_system_id instances const 2017-09-14 11:59:30 +02:00
chromeos_tbmc.c platform/chrome: chromeos_tbmc - fix SPDX identifier 2018-06-16 16:52:59 -07:00
cros_ec_debugfs.c mfd: cros_ec: Don't try to grab log when suspended 2018-05-29 09:10:39 +01:00
cros_ec_i2c.c platform/chrome: Move cros-ec transport drivers to drivers/platform. 2018-07-03 12:40:06 -07:00
cros_ec_lightbar.c platform/chrome: Use to_cros_ec_dev more broadly 2018-05-30 11:53:40 -07:00
cros_ec_lpc.c platform/chrome: cros_ec_lpc: do not try DMI match when ACPI device found 2018-05-22 16:46:13 -07:00
cros_ec_lpc_mec.c platform/chrome: cros_ec_lpc: Add support for mec1322 EC 2017-06-23 16:12:01 -07:00
cros_ec_lpc_reg.c platform/chrome: cros_ec_lpc: Add support for mec1322 EC 2017-06-23 16:12:01 -07:00
cros_ec_proto.c mfd: cros-ec: copy the whole event in get_next_event_xfer 2018-10-09 20:57:30 -07:00
cros_ec_spi.c platform/chrome: Move cros-ec transport drivers to drivers/platform. 2018-07-03 12:40:06 -07:00
cros_ec_sysfs.c platform/chrome: Use to_cros_ec_dev more broadly 2018-05-30 11:53:40 -07:00
cros_ec_vbc.c platform/chrome: Use to_cros_ec_dev more broadly 2018-05-30 11:53:40 -07:00
cros_kbd_led_backlight.c platform/chrome: Add Chrome OS keyboard backlight LEDs support 2016-05-11 11:55:47 -07:00