Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp223926pxx; Wed, 28 Oct 2020 03:19:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznf4Fs2p52z5abhhh9RJ91EZrqEkYaoKFS5HXg1PW1msAhOW8PjryMCUxOYOQixkRbD0G6 X-Received: by 2002:a17:906:fca:: with SMTP id c10mr1375767ejk.128.1603880370566; Wed, 28 Oct 2020 03:19:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603880370; cv=none; d=google.com; s=arc-20160816; b=F4M/QC+f1SltGMzoDB8D1H124YRsDwGasuiNsuK1cevSn1u2s0yp9z5oRWDNtCr2Yb eDrF4tWRsC4KjPqH1Q2+VqU8MnnCspqourDCMInhzc5sPr1ZoSBWXjjx1oibQC307rSP ctPjze4LkZoirGbFp5zp2+tz/ZNh15sA6WTI7oMFtTUuWI4EMZOMh8m+r76cbScQN9UM NmmGHNh2sWKny3xbJsFc+4isL/cJHMcsED8TpB0aDpQmzrXS6lXJjOoudMQV/5vLIhUb lYd0f8hc/ta6rypDHOGurTJy92Swr72SqS9mQf258R8KNzV68AReO72h8P3uuzuFzW9M ZWtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Izu97RGk1z7xfzYQevPnMgvEPXWBnRa/e3GTBFM1hNI=; b=tqy/Bzj49wwe6tw5nbGDUlp/lIWEzssS5gzrgwnTEeWwuwYkiYUJjd0+0yf0scallX E4TBPV1dTe7KJ5ODUcGd7PNHAXuIxUQsC028yFgx9K1A2PBLz0fVZZjgKctR95+SG38P fkGaENfkJkZ3TM9L5/mC7lWo2XCq6GpyfpaYxUJf3jZupC2eoMnEMmHgVvt66/TsXR9n KGGOSPNgnw6edZT5YIcZmAo+sed3obwsKwdxI+SF1uDnSmO+7f70IHeVGeFQFeKCLvhv 4Ye8BpveAReIc1J0fkHVmfye3C2puKeJ+gcMwEjfCpEU+H6Rb6gbd69sWvRtFTjIHANo E68A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JhqxhHVA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a42si3838927edf.535.2020.10.28.03.19.08; Wed, 28 Oct 2020 03:19:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=JhqxhHVA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761131AbgJ0OiF (ORCPT + 99 others); Tue, 27 Oct 2020 10:38:05 -0400 Received: from mail.kernel.org ([198.145.29.99]:37176 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761112AbgJ0Oh7 (ORCPT ); Tue, 27 Oct 2020 10:37:59 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 B1F1422202; Tue, 27 Oct 2020 14:37:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809479; bh=N9ZZqb4Wkg37PqufQ2y5tFtrYw9JGWQ7EOeCVPoA6T0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JhqxhHVAVxavMBnQcv9xDPC7CniW77tQ9LcMGoldOkNtrIbsdgIQKC4TXhgekmhtE MA5m9KxBdWF3vdDkI2MfvtEov1OgDxFh5ZqkCXL9obxmGvuQkKDinI5oO5gUs0oxT8 1tYY5aNBbN/ygZlQFQlyikVDxTdyXJ5DYR1/e6z8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mike Christie , John Donnelly , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.4 183/408] scsi: target: tcmu: Fix warning: page may be used uninitialized Date: Tue, 27 Oct 2020 14:52:01 +0100 Message-Id: <20201027135503.579752661@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Donnelly [ Upstream commit 61741d8699e1fc764a309ebd20211bb1cb193110 ] Corrects drivers/target/target_core_user.c:688:6: warning: 'page' may be used uninitialized. Link: https://lore.kernel.org/r/20200924001920.43594-1-john.p.donnelly@oracle.com Fixes: 3c58f737231e ("scsi: target: tcmu: Optimize use of flush_dcache_page") Cc: Mike Christie Acked-by: Mike Christie Signed-off-by: John Donnelly Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/target/target_core_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index ea925b102b322..d6634baebb474 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -669,7 +669,7 @@ static void scatter_data_area(struct tcmu_dev *udev, void *from, *to = NULL; size_t copy_bytes, to_offset, offset; struct scatterlist *sg; - struct page *page; + struct page *page = NULL; for_each_sg(data_sg, sg, data_nents, i) { int sg_remaining = sg->length; -- 2.25.1