linux-stable/drivers/platform/surface/aggregator
Maximilian Luz 86eb98cb4a platform/surface: aggregator: Fix access of unaligned value
The raw message frame length is unaligned and explicitly marked as
little endian. It should not be accessed without the appropriate
accessor functions. Fix this.

Note that payload.len already contains the correct length after parsing
via sshp_parse_frame(), so we can simply use that instead.

Reported-by: kernel-test-robot <lkp@intel.com>
Fixes: c167b9c7e3 ("platform/surface: Add Surface Aggregator subsystem")
Signed-off-by: Maximilian Luz <luzmaximilian@gmail.com>
Acked-by: Mark Gross <mgross@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210211124149.2439007-1-luzmaximilian@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2021-02-11 16:47:50 +01:00
..
Kconfig platform/surface: aggregator: Add dedicated bus and device type 2021-01-07 00:06:39 +01:00
Makefile platform/surface: aggregator: Add dedicated bus and device type 2021-01-07 00:06:39 +01:00
bus.c platform/surface: aggregator: Add dedicated bus and device type 2021-01-07 00:06:39 +01:00
bus.h platform/surface: aggregator: Add dedicated bus and device type 2021-01-07 00:06:39 +01:00
controller.c platform/surface: aggregator: Add trace points 2021-01-07 00:06:17 +01:00
controller.h platform/surface: aggregator: Add event item allocation caching 2021-01-06 23:45:34 +01:00
core.c platform/surface: aggregator: Add dedicated bus and device type 2021-01-07 00:06:39 +01:00
ssh_msgb.h
ssh_packet_layer.c platform/surface: aggregator: Fix access of unaligned value 2021-02-11 16:47:50 +01:00
ssh_packet_layer.h
ssh_parser.c
ssh_parser.h
ssh_request_layer.c platform/surface: aggregator: Fix kernel-doc references 2021-01-18 19:22:08 +01:00
ssh_request_layer.h
trace.h platform/surface: aggregator: Add error injection capabilities 2021-01-07 00:06:22 +01:00