summaryrefslogtreecommitdiffstats
path: root/drivers/net/virtio_net.c
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2010-01-26 00:49:59 +0100
committerDavid S. Miller <davem@davemloft.net>2010-01-26 00:49:59 +0100
commit5a27e86babe79cf5f575394bb1055448458df6c7 (patch)
treefa64f367db6367525ed6fb3097e6a509ec93c581 /drivers/net/virtio_net.c
parentsfc: Add workspace for GMAC bug workaround to MCDI MAC_STATS buffer (diff)
downloadlinux-5a27e86babe79cf5f575394bb1055448458df6c7.tar.xz
linux-5a27e86babe79cf5f575394bb1055448458df6c7.zip
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 '')
0 files changed, 0 insertions, 0 deletions