diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2012-09-14 17:31:41 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2013-08-21 16:35:27 +0100 |
commit | 9528b9219348e0a013f4b587958a8ba9c96d7e20 (patch) | |
tree | f6244c5dccb81e29aa3fb8e2a5bbfcebd20333c0 /drivers/acpi/pci_irq.c | |
parent | c5bb0e9891ba1f7c871adc09d9ef727e1c0c1c1e (diff) |
sfc: Ensure MCDI buffers, but not lengths, are dword aligned
We currently require that MCDI request and response lengths are
multiples of 4 bytes, because we will copy dwords in and out of shared
memory and we want to be sure we won't read or write out of bounds.
But all we really need to know is that there is sufficient padding for
that. Also, we should ensure that buffers are dword-aligned, as on
some architectures misaligned access will result in data corruption or
a crash.
Change the buffer type to array-of-efx_dword_t and remove the
requirement that the lengths are multiples of 4.
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/acpi/pci_irq.c')
0 files changed, 0 insertions, 0 deletions