Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp807636pxk; Wed, 23 Sep 2020 17:24:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw2YwdwYO95Udde/hGnWPhvNqkwAUudejoj/pI7e4MEA4Aum9qY6ZQhzKd0+sVXjrSBnNi1 X-Received: by 2002:a17:906:bc47:: with SMTP id s7mr2209842ejv.354.1600907090880; Wed, 23 Sep 2020 17:24:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600907090; cv=none; d=google.com; s=arc-20160816; b=ZtyplLJeqsSLY+ehrlmmQKo0Gb38pTaWGRg03Ia7tAcsuWAUP+MWuvZE5Sa3ZppNGS 015TR2qjJ40HjNngnHTgVezS2+bybB7H3eIvUPp2SThsZz42Knv67Y+1LlsS6yjDJB2+ cOWxVl67ru9esTrhIufpHLAUSm04YUMGbJHsN4cszIXUQUVFjaHCfH+utx7Py1QGlhxJ XB8SM+Q8ZbZawHmiehoRQsnBZFUykfL1aJ+u8nWblBGIhiE6u7Cnd29h1zhF8ORa8vZE Hi+CxAo3d0bTlZOXwrRMQ6qfAvruUWsY6gdD0cYW3xJSFthxNbVKZCaRUppxlb5zkzCy GDCw== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=lzYUIq+tEc6xTX0bbMcY/R7xOwvOwpJ8gk9Ayo/019g=; b=YR8HDT4ASO1UNmYK0qXsnSMw8xUp/qqgkgOgfxwAhL6ZmK1occtNggqyRNAzJlcMjq PI5aOBekUkpy6HEgeVNDTDXJqyyAfENlLy1ilFnzZGVQ2iP9HPzj/PvOBfIeIrmtN01B 1sIQ5tg4E+v/C7Sax3Glxn4bu6hEXoWRL2fPSEHCcTTOd27Yh671bJ8r3klaOX09EJ2R 0q5tsO5P1yKa0vD06oTHGsZDHjG07gAAdRb74XmvsuzM8MB6bkNy47aGsHJHrGmP/6/s wnONBYlvmyzkVT2j5Nw7DioNHB59quz52RSoSIEmx/RWy/Ky5HgpLHhQX+3+Cyp082O4 Easg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=I9BYGfP6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 18si1299075edv.184.2020.09.23.17.24.27; Wed, 23 Sep 2020 17:24:50 -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=@oracle.com header.s=corp-2020-01-29 header.b=I9BYGfP6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726638AbgIXAT0 (ORCPT + 99 others); Wed, 23 Sep 2020 20:19:26 -0400 Received: from aserp2120.oracle.com ([141.146.126.78]:48672 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726466AbgIXAT0 (ORCPT ); Wed, 23 Sep 2020 20:19:26 -0400 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O0FDcT021047; Thu, 24 Sep 2020 00:19:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding; s=corp-2020-01-29; bh=lzYUIq+tEc6xTX0bbMcY/R7xOwvOwpJ8gk9Ayo/019g=; b=I9BYGfP67uGWTPJKHj/jcUWqzk9LHV3w05P6MhP+aBCQZIoH7OVUcyuyEsJgYu/oA6HR y6U4SjrYZ46DIN/z70hgAi4KLSYYerKqBIosgl64zw0zyJZi7TIA/rbov3eLArDPtJH4 gNJMKP5FrLvyHceOY02OOLtiOJly10W9J8b0lY32hM1GtYpKDv/xqtFq1JlssHxX1DQQ PgRnZkJz5dBRjIj5x1+O6n9M1ihA47bHQoDdbK1MIa0PlIx2/VNhAUKnGua3vO2unc6z BqfbOiKROkuha4UfAdk+UFo5XG4twV7y7Pw1UCWU6DyG7XW0DkcOTDD/LRheJiCqdNix rQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 33q5rgkra7-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Sep 2020 00:19:22 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08O0ERD2095741; Thu, 24 Sep 2020 00:19:21 GMT Received: from pps.reinject (localhost [127.0.0.1]) by aserp3030.oracle.com with ESMTP id 33nujq7trm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 24 Sep 2020 00:19:21 +0000 Received: from aserp3030.oracle.com (aserp3030.oracle.com [127.0.0.1]) by pps.reinject (8.16.0.36/8.16.0.36) with SMTP id 08O0JLhZ105613; Thu, 24 Sep 2020 00:19:21 GMT Received: from ca-dev112.us.oracle.com (ca-dev112.us.oracle.com [10.147.25.63]) by aserp3030.oracle.com with ESMTP id 33nujq7tr8-1; Thu, 24 Sep 2020 00:19:21 +0000 From: john.p.donnelly@oracle.com To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, john.p.donnelly@oracle.com, michael.christie@oracle.com, bstroesser@ts.fujitsu.com Subject: [PATCH ] scsi: page warning: 'page' may be used uninitialized Date: Wed, 23 Sep 2020 17:19:20 -0700 Message-Id: <20200924001920.43594-1-john.p.donnelly@oracle.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 impostorscore=0 clxscore=1011 suspectscore=0 phishscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009240000 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Donnelly corrects: drivers/target/target_core_user.c:688:6: warning: 'page' may be used uninitialized Fixes: 3c58f737231e ("scsi: target: tcmu: Optimize use of flush_dcache_page") To: linux-scsi@vger.kernel.org Cc: Mike Christie Signed-off-by: John Donnelly --- 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 9b7592350502..86b28117787e 100644 --- a/drivers/target/target_core_user.c +++ b/drivers/target/target_core_user.c @@ -681,7 +681,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.27.0