diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2011-07-05 00:04:42 +0100 |
---|---|---|
committer | Ben Hutchings <bhutchings@solarflare.com> | 2012-09-19 02:56:23 +0100 |
commit | e3f5ec1108ee01b555d5894722884e40dbec058f (patch) | |
tree | f3e2d295c71bf271403c13674c2e69cf41a6ad11 /drivers/net/ethernet/sfc/mtd.c | |
parent | bfeed902946a31692e7a24ed355b6d13ac37d014 (diff) | |
download | blackbird-op-linux-e3f5ec1108ee01b555d5894722884e40dbec058f.tar.gz blackbird-op-linux-e3f5ec1108ee01b555d5894722884e40dbec058f.zip |
sfc: Support variable-length response to MCDI GET_BOARD_CFG
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/mtd.c')
-rw-r--r-- | drivers/net/ethernet/sfc/mtd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/mtd.c b/drivers/net/ethernet/sfc/mtd.c index 758148379b0e..8f4604d5d642 100644 --- a/drivers/net/ethernet/sfc/mtd.c +++ b/drivers/net/ethernet/sfc/mtd.c @@ -627,7 +627,8 @@ static int siena_mtd_get_fw_subtypes(struct efx_nic *efx, struct efx_mtd *efx_mtd) { struct efx_mtd_partition *part; - uint16_t fw_subtype_list[MC_CMD_GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST_MINNUM]; + uint16_t fw_subtype_list[ + MC_CMD_GET_BOARD_CFG_OUT_FW_SUBTYPE_LIST_MAXNUM]; int rc; rc = efx_mcdi_get_board_cfg(efx, NULL, fw_subtype_list, NULL); |