From patchwork Wed Oct 27 14:35:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bixuan Cui X-Patchwork-Id: 1546979 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=HcC7S0pg; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HfWTC0hwyz9sfG for ; Thu, 28 Oct 2021 01:35:59 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date:Subject:Cc:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=9P65ApsJAeEjvhlFbfhEF9jmGmINg3RMZt1TZGVKV+8=; b=HcC7S0pgEOP0Rf dXxjfEVnbh35JJOLKX6MVxUnbjceZtE0D7QB4LV2qfHYECKTuQtEhujXwasRfnFrCfGTv/B2LDgRQ UpwNjVA6PGCE7U4lAmMqN3bW31w0XJauEFtvAx9hxua02wLuGDQ/utZT0J2hecx2zD8BnXFkLL68U 5TWP45Yftg9cQe8GBapoeifIwCM7+XHoT16cfYPr8KjUp34qjScn2pjieLfPpI6eOl1FAuHHCaWxu G/a+NPjgtuNraOO+jx643qqVAN+x0Dqu3v19kaeXhfH6bttgYtfBBU6hUkzTyh/NmUP2KEBKLpTHL FCrTryDsDvTfJlHNfcnw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfk1q-0058Pf-Ls; Wed, 27 Oct 2021 14:35:46 +0000 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfk1m-0058Nw-SU for linux-um@lists.infradead.org; Wed, 27 Oct 2021 14:35:44 +0000 X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R631e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04357; MF=cuibixuan@linux.alibaba.com; NM=1; PH=DS; RN=7; SR=0; TI=SMTPD_---0UtuPuVY_1635345335; Received: from VM20210331-25.tbsite.net(mailfrom:cuibixuan@linux.alibaba.com fp:SMTPD_---0UtuPuVY_1635345335) by smtp.aliyun-inc.com(127.0.0.1); Wed, 27 Oct 2021 22:35:38 +0800 From: Bixuan Cui To: linux-um@lists.infradead.org, linux-kernel@vger.kernel.org Cc: cuibixuan@linux.alibaba.com, jdike@addtoit.com, richard@nod.at, anton.ivanov@cambridgegreys.com, johannes.berg@intel.com Subject: [PATCH -next] um: virt-pci: Fix application of sizeof to pointer Date: Wed, 27 Oct 2021 22:35:35 +0800 Message-Id: <1635345335-33899-1-git-send-email-cuibixuan@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211027_073543_136017_04AB4509 X-CRM114-Status: UNSURE ( 7.77 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -8.0 (--------) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Fix noderef.cocci warning: ./arch/um/drivers/virt-pci.c:192:20-26: ERROR: application of sizeof to pointer Fixes: 4a22c4cebd61 ("um: virt-pci: don't do DMA from stack") Signed-off-by: Bixuan Cui --- arch/um/drivers/virt-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(- [...] Content analysis details: (-8.0 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [115.124.30.44 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -7.5 USER_IN_DEF_SPF_WL From: address is in the default SPF white-list -0.5 ENV_AND_HDR_SPF_MATCH Env and Hdr From used in default SPF WL Match 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-um@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-um" Errors-To: linux-um-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Fix noderef.cocci warning: ./arch/um/drivers/virt-pci.c:192:20-26: ERROR: application of sizeof to pointer Fixes: 4a22c4cebd61 ("um: virt-pci: don't do DMA from stack") Signed-off-by: Bixuan Cui --- arch/um/drivers/virt-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/um/drivers/virt-pci.c b/arch/um/drivers/virt-pci.c index c080666..156af2f 100644 --- a/arch/um/drivers/virt-pci.c +++ b/arch/um/drivers/virt-pci.c @@ -189,7 +189,7 @@ static unsigned long um_pci_cfgspace_read(void *priv, unsigned int offset, buf = get_cpu_var(um_pci_msg_bufs); data = buf->data; - memset(data, 0xff, sizeof(data)); + memset(data, 0xff, sizeof(*data)); switch (size) { case 1: