aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/resource.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-01-25 18:49:59 -0500
committerDavid S. Miller <davem@davemloft.net>2010-01-25 18:49:59 -0500
commit5a27e86babe79cf5f575394bb1055448458df6c7 (patch)
treefa64f367db6367525ed6fb3097e6a509ec93c581 /kernel/resource.c
parent8704a2c8e9db24157a7b08d1678bf840f2318779 (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 'kernel/resource.c')
0 files changed, 0 insertions, 0 deletions