From: Ben Hutchings Date: Mon, 25 Jan 2010 23:49:59 +0000 (-0800) Subject: sfc: Use fixed-size buffers for MCDI NVRAM requests X-Git-Tag: v2.6.33-rc6~29^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a27e86babe79cf5f575394bb1055448458df6c7;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed