summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2013-04-22 22:40:07 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-19 10:54:44 -0700
commit71ee19e72689cb4568e042ed49d1ac27336a10d6 (patch)
tree1e4fa74dd677c7e18e9f77e84a3c3d8c7306c741 /lib
parent8e1546d7e14ef043ff74070cea0aff55ba2f600c (diff)
downloadlinux-3.10-71ee19e72689cb4568e042ed49d1ac27336a10d6.tar.gz
linux-3.10-71ee19e72689cb4568e042ed49d1ac27336a10d6.tar.bz2
linux-3.10-71ee19e72689cb4568e042ed49d1ac27336a10d6.zip
sfc: Fix naming of MTD partitions for FPGA bitfiles
[ Upstream commit 89cc80a44b7c320e08599cb86f6aef0ead8986a1 ] efx_mcdi_get_board_cfg() uses a buffer for the firmware response that is only large enough to hold subtypes for the originally defined set of NVRAM partitions. Longer responses are truncated, and we may read off the end of the buffer when copying out subtypes for additional partitions. In particular, this can result in the MTD partition for an FPGA bitfile being named e.g. 'eth5 sfc_fpga:00' when it should be 'eth5 sfc_fpga:01'. This means the firmware update tool (sfupdate) can't tell which bitfile should be written to the partition. Correct the response buffer size. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions