Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10328530pxu; Tue, 29 Dec 2020 22:47:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJyN2tAeUpZMNVXYUWkeASLEzDfaDRV8QscuO5P/tP+FbiE1v3v/XsH8ZDQaWGGFq1DCSvJN X-Received: by 2002:a17:906:f9da:: with SMTP id lj26mr47297121ejb.467.1609310823303; Tue, 29 Dec 2020 22:47:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609310823; cv=none; d=google.com; s=arc-20160816; b=J8gufoSio3RWPA1p55Ld+0shiS6G/mQZNou5/z0A7x2UwsVDO1XbHtz1XT57LTag4N VDEnmnjjMCXVHGZLenUdDRAvh5QtK+F9MrjYMA9LEGQCdhn3QO0DrmCVRjVZw9oJMmfa ALncHt9k8ZCfQyASym4mrKOcv67M03ln9wA/vO5uJUewKEoKKMSm6h4BVpL89Q5DD+nB DIeAbJ0iXetw+GvZEUzbCRdA/CEjxdGZs/67pHpNGI0Y3FYQiKwwtLEA5ziUspQu0n4d coH8Ir8HXWz7I/oFT5zNcNofAR4H3JaHo70yMpEWPki0voKM/7k0kUz8F9KzVD+s82ZQ 8BSQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=ddUudo+P8Nk4aytmPeHbtdCUqgevxLlZc0WL/jqC24U=; b=uVjEqbMGdH7ERxQVNBxAtBfgEpqBJQo0sa5HxlHpTc5sM/Hgrjy8877rPPoxG/Ro4K AdCJv2lT9sw+LKCp937KJ1RmpPHRrdwJShZmjpzFUx52HuIvhpvHrXvT8+pJtxXYzQC8 GSct7uQ5rwtfbnJiz8QCVJ27MJPvYi94X4nZPGdFQR2gNC2NGlFL1AsQrIMkFsl6NB0D bbN4FSwIPsSB4HTjVigig2/MYS9B331gUSiFwl1TLyLEB2Fe7R1PyNiTCvFDBpziNcQ1 UHRUh+oYVuMIR/iftSu/mmqPqTRxSt+yVarWdUXLyP98YzakSfkel7nLoGFtT7Eu6uRK 1N7w== ARC-Authentication-Results: i=1; mx.google.com; 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=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e26si22980663edy.255.2020.12.29.22.46.41; Tue, 29 Dec 2020 22:47:03 -0800 (PST) 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; 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=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726322AbgL3GqO (ORCPT + 99 others); Wed, 30 Dec 2020 01:46:14 -0500 Received: from out30-56.freemail.mail.aliyun.com ([115.124.30.56]:51612 "EHLO out30-56.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbgL3GqO (ORCPT ); Wed, 30 Dec 2020 01:46:14 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R481e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=abaci-bugfix@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0UKD9.Mt_1609310714; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:abaci-bugfix@linux.alibaba.com fp:SMTPD_---0UKD9.Mt_1609310714) by smtp.aliyun-inc.com(127.0.0.1); Wed, 30 Dec 2020 14:45:30 +0800 From: YANG LI To: asmadeus@codewreck.org Cc: davem@davemloft.net, kuba@kernel.org, ericvh@gmail.com, lucho@ionkov.net, v9fs-developer@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, YANG LI Subject: [PATCH] 9p: fix: Uninitialized variable p. Date: Wed, 30 Dec 2020 14:45:13 +0800 Message-Id: <1609310713-84972-1-git-send-email-abaci-bugfix@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The pointer p is being used but it isn't being initialized, need to assign a NULL to it. Signed-off-by: YANG LI Reported-by: Abaci --- net/9p/trans_virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index 93f2f86..d4d635f 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -342,7 +342,7 @@ static int p9_get_mapped_pages(struct virtio_chan *chan, /* kernel buffer, no need to pin pages */ int index; size_t len; - void *p; + void *p = NULL; /* we'd already checked that it's non-empty */ while (1) { -- 1.8.3.1