linux/drivers/firmware/arm_scmi
Sudeep Holla 37bbffcb19 firmware: arm_scmi: Remove extra check for invalid length message responses
scmi_xfer_get_init ensures both transmit and receive buffer lengths are
within the maximum limits. If receive buffer length is not supplied by
the caller, it's set to the maximum limit value. Receive buffer length
is never modified after that. So there's no need for the extra check
when receive transmit completion for a command essage.

Further, if the response header length is greater than the prescribed
receive buffer length, the response buffer is truncated to the latter.

Reported-by: Jim Quinlan <james.quinlan@broadcom.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2019-08-12 12:22:58 +01:00
..
base.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00
bus.c firmware: arm_scmi: provide the mandatory device release callback 2019-01-30 11:34:42 +01:00
clock.c firmware: arm_scmi: update rate_discrete in clock_describe_rates_get 2019-06-12 12:29:16 +01:00
common.h firmware: arm_scmi: Use the correct style for SPDX License Identifier 2019-06-19 19:32:31 +02:00
driver.c firmware: arm_scmi: Remove extra check for invalid length message responses 2019-08-12 12:22:58 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
perf.c firmware: arm_scmi: add a getter for power of performance states 2018-09-10 17:37:06 +01:00
power.c firmware: arm_scmi: use strlcpy to ensure NULL-terminated strings 2018-09-10 10:08:44 +01:00
scmi_pm_domain.c firmware: arm_scmi: add device power domain support using genpd 2018-02-28 16:37:57 +00:00
sensors.c firmware: arm_scmi: Align few names in sensors protocol with SCMI specification 2019-08-12 12:22:58 +01:00