Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp275647pxx; Wed, 28 Oct 2020 04:46:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykrNWT4/vXNkntOH+033WFusWcnqekCK7fRef/T3Hg/x7msZP3icXPZfPyMmluZfav1Fuk X-Received: by 2002:a17:906:3c05:: with SMTP id h5mr7014809ejg.70.1603885591133; Wed, 28 Oct 2020 04:46:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603885591; cv=none; d=google.com; s=arc-20160816; b=tM3T1mqVBr1k5CGKJCDt/eaaVcxc+hygTai0PikWTBNEZLcuUazjYw2qJy/+DJSmA0 sfOo/G5H7vjhAac3vg5a8n4dIG3X2iEfz2hNtyqCgyYHaKitP7ZTHoGOtZv60sfoXgy3 AIegqlQbdrw7v7MQaAG8yhsfxCQ2EdFBFa0gZrMf+EgkKbB5ZIr8SWltyQnSRCbZkFDo ZIAZi9371XL5TAZxT5mxVLEhLL0fvkmJg7Cl8J0JGmGZnuwXNweo2Vgce5v17EFdXuf8 hT1UP9TcsM2DVQevp9GZbYnzR64eTtf4u/71oKWZgPIAtZHBYCpWI5RRrRv9bSsILF4u BCFw== 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=83JFvPg/RF0PTTAgsSw/t/MbNSFcVeUazN0nJArr9Uw=; b=x5OoujXF6NGjBz3tDHp57lFBTH/MhuZzjBfKK5sySug3RTOzLGd9qdhAVMJ4PnI7d6 YfWUP1XiXrsKRNRmYPR7rjX12SmAdRm81py0hYU4SOqxkY51QE0yFFcUxlMKGwrRchTe GyR7BoG3OcAYTJmY5p9wX1HgPfVs/Ij77jKWadFOor1BVwxzksRpmS943VMy9Tiip0fF uoy5KJKFu6ibOsSQ6vbaBX3leyENVVky59RMCV2+h2Q5aqEg2AMiBt0uQG8wnqvZ1qaK LAr4vX6hAhPFL2NBsrHim+2cIDpl9LvvJQGLXiTr0jFYClSmllf6TUMjfIFd3dmo4fuU 4deQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="1wGvUW/M"; 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 q18si2524555edb.466.2020.10.28.04.46.08; Wed, 28 Oct 2020 04:46:31 -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="1wGvUW/M"; 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 S1794424AbgJ0PLp (ORCPT + 99 others); Tue, 27 Oct 2020 11:11:45 -0400 Received: from mail.kernel.org ([198.145.29.99]:35708 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1789199AbgJ0PBq (ORCPT ); Tue, 27 Oct 2020 11:01:46 -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 333A320715; Tue, 27 Oct 2020 15:01:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603810905; bh=TnFnJnZaT30qsOo3rJou22O0eV026A8tn5Y5NeXVUn0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1wGvUW/MBEcwQFvi98RpPwbYS18FyvovjLtbBHV4OX0DpLi4AlK58a0ScE/goKtR1 n6nEDAmIMzdPRng54EM0fPP6jUwKghNgT3X0KrfOCpHOeB/w3Sb0hTlSUS/A/wwux9 DHl79iWEeGX134QNzQ2cTWpy5X5rWGB8yaI0GTCM= 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.8 304/633] scsi: target: tcmu: Fix warning: page may be used uninitialized Date: Tue, 27 Oct 2020 14:50:47 +0100 Message-Id: <20201027135536.933529323@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@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 0209bc23e631e..13a280c780c39 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