diff options
-rw-r--r-- | drivers/net/ethernet/sfc/falcon.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/falcon.c b/drivers/net/ethernet/sfc/falcon.c index 8685f99d872a..ff5d322b9b49 100644 --- a/drivers/net/ethernet/sfc/falcon.c +++ b/drivers/net/ethernet/sfc/falcon.c | |||
@@ -893,6 +893,8 @@ static int falcon_mtd_probe(struct efx_nic *efx) | |||
893 | 893 | ||
894 | /* Allocate space for maximum number of partitions */ | 894 | /* Allocate space for maximum number of partitions */ |
895 | parts = kcalloc(2, sizeof(*parts), GFP_KERNEL); | 895 | parts = kcalloc(2, sizeof(*parts), GFP_KERNEL); |
896 | if (!parts) | ||
897 | return -ENOMEM; | ||
896 | n_parts = 0; | 898 | n_parts = 0; |
897 | 899 | ||
898 | spi = &nic_data->spi_flash; | 900 | spi = &nic_data->spi_flash; |