diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2010-01-25 15:49:59 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-25 15:49:59 -0800 |
commit | 5a27e86babe79cf5f575394bb1055448458df6c7 (patch) | |
tree | fa64f367db6367525ed6fb3097e6a509ec93c581 /sound | |
parent | 8704a2c8e9db24157a7b08d1678bf840f2318779 (diff) |
sfc: Use fixed-size buffers for MCDI NVRAM requests
The low-level MCDI code always uses 32-bit MMIO operations, and
callers must pad input and output buffers to multiples of 4 bytes.
The MCDI NVRAM functions are not doing this. Also, their buffers are
declared as variable-length arrays with no explicit maximum length.
Switch to a fixed buffer size based on the chunk size used by the
MTD driver (which is a multiple of 4).
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions