From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C647C43603 for ; Wed, 4 Dec 2019 18:16:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08307205ED for ; Wed, 4 Dec 2019 18:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575483364; bh=72jCs5LQDH9usiA0Ws34AWzUDZph8U8sPwjFooyCfb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=QS32yKh5eSaPhq8VsnymeVxQNnkYzzaZDnEsWfDse8shrkziXuXGxCSqn5EidZzH2 0VueBRdgjT6F64rIj3oH2proX4E5LAS6IRdm+JbIHNBZqfAAkfqeJ7Y8M6sjjrKdBr PAJ7FDhFU/Ukl8QLRx/JVD25trG9x7nQTn8tLR04= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730303AbfLDSNb (ORCPT ); Wed, 4 Dec 2019 13:13:31 -0500 Received: from mail.kernel.org ([198.145.29.99]:42450 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731721AbfLDSNX (ORCPT ); Wed, 4 Dec 2019 13:13:23 -0500 Received: from localhost (unknown [217.68.49.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 29FD120862; Wed, 4 Dec 2019 18:13:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575483202; bh=72jCs5LQDH9usiA0Ws34AWzUDZph8U8sPwjFooyCfb8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NYgxHr9wGzU393xxZB6IXi9B8se2qukeOTFE9+wutEYIqJoL+/3L07w9/Qn5fa6tg UBeSWa3D9uZFxwVkrnxzZfMrv6I3fVePT/OJrv91Yuz8jIUgmNosvoCaIRGOYS0btR daZKF5PSeYS2RAuNKdCehBycNhLze2jFJmI9uqoo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bert Kenward , "David S. Miller" , Sasha Levin Subject: [PATCH 4.9 095/125] sfc: initialise found bitmap in efx_ef10_mtd_probe Date: Wed, 4 Dec 2019 18:56:40 +0100 Message-Id: <20191204175324.857848579@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204175308.377746305@linuxfoundation.org> References: <20191204175308.377746305@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bert Kenward [ Upstream commit c65285428b6e7797f1bb063f33b0ae7e93397b7b ] 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 Signed-off-by: David S. Miller Signed-off-by: Sasha Levin --- drivers/net/ethernet/sfc/ef10.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/sfc/ef10.c b/drivers/net/ethernet/sfc/ef10.c index 34e2256c93f46..22bc3dc44298c 100644 --- a/drivers/net/ethernet/sfc/ef10.c +++ b/drivers/net/ethernet/sfc/ef10.c @@ -5159,7 +5159,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; -- 2.20.1