Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp751233ybl; Wed, 4 Dec 2019 10:14:53 -0800 (PST) X-Google-Smtp-Source: APXvYqyCgxXvKXaDTxXAy2IOjWYF94XfdeNPyTyicmiJqH4df0qxYlUWh6ba8ql4GikUARap5/r4 X-Received: by 2002:a9d:12ae:: with SMTP id g43mr3615191otg.243.1575483293804; Wed, 04 Dec 2019 10:14:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575483293; cv=none; d=google.com; s=arc-20160816; b=U7b7c+H+oUxXUjxQ6qKirkzGT8bsYgiGLjQcIIoS4QBfR7cvwivD6Burocv7JsUgdi IlBx749xXnWClUfqyYTAomviPDvptEKt5ZfdKXez12Fto0K41uLspIqDiKwvLcpe86UM 2QfyL5jVEPceCvJjI69dsAstMKjCr8We7RAHhiiq0CkUuO16R4diwGCf2KaJN1/JXRLT jYf+k3iokaaVE+EV9jFbRIr+25+Lto1kVX3cR6gKVqJ3aDNAWxJyvIFn9GpjYs5pWG1d PrAjhWwelPf/fUFl3ZVViMB+j3LwVfaoR8VCVz3Sojil0Lhchkah9zdwPZANcat7YWgg Cnng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Td68qpweqsKBD8/Bfr5sUhbNqBT9BSwJRaOHQmPdLOI=; b=YsON5Rmn5mPwuRj+iTlka15YGLOFB8NZjlP2I0uHqnzOs3T9Cy79odDV1hiD7zYvPS 6TiaUJ+XxfqxjUzAodlSjxur53IS5I89eVsXMrjTnkhY3wdeSgyV53v8PNNV/x6Bl85D byENtDAaeGdRd3fQ3UJXohw84Mmt8qTWMNEyiigbf/oa58Is2kt8KHWhKZv+Cx7bIqhf axJsfOaDpGCpQDht9jK5nygr0h8o6MnLVBworSBNnNNYNs/8AZp1ciGOodGMMEZVgZ0i cDAO26x1kmgDH7ugiJDePrDri5X6eBRHxsLCR6TXSV6DVoWPROogE2Hc3Ihf17ejmIoT PLmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NYgxHr9w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 7si3189861otk.79.2019.12.04.10.14.40; Wed, 04 Dec 2019 10:14:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NYgxHr9w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731763AbfLDSNa (ORCPT + 99 others); Wed, 4 Dec 2019 13:13:30 -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