diff options
author | Bert Kenward <bkenward@solarflare.com> | 2019-02-12 13:10:00 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-02-12 11:49:21 -0500 |
commit | c65285428b6e7797f1bb063f33b0ae7e93397b7b (patch) | |
tree | b1cca4855282e5d5694d4b16753cb404c3cb68ae /drivers/net/ethernet/sfc/ef10.c | |
parent | 1ea06107b0d0465633bc225c00b3914fa404c30e (diff) | |
download | linux-c65285428b6e7797f1bb063f33b0ae7e93397b7b.tar.gz linux-c65285428b6e7797f1bb063f33b0ae7e93397b7b.tar.bz2 linux-c65285428b6e7797f1bb063f33b0ae7e93397b7b.zip |
sfc: initialise found bitmap in efx_ef10_mtd_probe
The bitmap of found partitions in efx_ef10_mtd_probe was not
initialised, causing partitions to be suppressed based off whatever
value was in the bitmap at the start.
Fixes: 3366463513f5 ("sfc: suppress duplicate nvmem partition types in efx_ef10_mtd_probe")
Signed-off-by: Bert Kenward <bkenward@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/sfc/ef10.c')
-rw-r--r-- | drivers/net/ethernet/sfc/ef10.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/sfc/ef10.c b/drivers/net/ethernet/sfc/ef10.c index 2f2bda68d861..c08034154a9a 100644 --- a/drivers/net/ethernet/sfc/ef10.c +++ b/drivers/net/ethernet/sfc/ef10.c @@ -6115,7 +6115,7 @@ static int efx_ef10_mtd_probe_partition(struct efx_nic *efx, static int efx_ef10_mtd_probe(struct efx_nic *efx) { MCDI_DECLARE_BUF(outbuf, MC_CMD_NVRAM_PARTITIONS_OUT_LENMAX); - DECLARE_BITMAP(found, EF10_NVRAM_PARTITION_COUNT); + DECLARE_BITMAP(found, EF10_NVRAM_PARTITION_COUNT) = { 0 }; struct efx_mcdi_mtd_partition *parts; size_t outlen, n_parts_total, i, n_parts; unsigned int type; |