Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp126628ybm; Thu, 28 May 2020 18:02:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyelYMBlXCkdsdfGFrGJay8aJtUfcYR2GyMiKg0xwCdsYKh2Qz7Autx5g7r1B264aHHe2XR X-Received: by 2002:a17:906:8cf:: with SMTP id o15mr5352080eje.351.1590714164322; Thu, 28 May 2020 18:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590714164; cv=none; d=google.com; s=arc-20160816; b=CIBSY6XYEXHSTF8emG75IunYTci7RGqQzoeVfsG8WfkGYocXG3/ASZAx8Gfjy6jdoq AMZ1wKH8Q8lRY+mqkLj2DCW1Eg6FNQGcj2mA7vqGa8BOqekZPrwRVd1jAIyYtufkfFIL w1uIWBqMuus6XelqDZmhawic3ScmqzjeTLuigBCkn9WQfBG+aF0dzN2af/af0w2unj4W Bn4x31P14P09+llVqJSw20LdtvHvFYTPiJIhvzfIT9cRPpvzhBb7jLfaFNnrflItfPc6 Tyk0fUo9DfbVMkiTHvFlsk9N5fSaXyt2cW1hFpv9ZQjX6KdQCfYTCZ06nsh6TffHKQMN CCJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=Z6ee+4UlTdPOZd7BaoZLFA3z9ihv7MLQ+5ss5FVgiHY=; b=MsbDG1+9ACoIe2bjoTT5pNFYqTaqc6rHTzdjzNzsl1TYVxlt1o5QQ+lPI2Dq68Oanw tpl4Dd1ZZhrn1vkYT04jFQl8n88/D1ruI4dDhjJy6nntanjKKThry4zGAxYGCsdPlGbV gKVbia7qhK19YzycyHQiqrdSlSp//wagCEzoq0HS6mmIw7Yj+UGxaG7f4d12cI55fELo fjSqMwPH0+au6mhlDIDMqXlQh3GdSdZ6oeFYRsiPsHwTAEdAqGJjMTtjrLPxOHwY9bQJ HvFREX2YLnafOTrDRbv0BdW70DWhZKL2Le+Se2BDDlj0YyzTrOxPYAMEDlR9LgmyXrlh gPlw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z17si4663717ejf.735.2020.05.28.18.02.20; Thu, 28 May 2020 18:02:44 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2438238AbgE2BAF (ORCPT + 99 others); Thu, 28 May 2020 21:00:05 -0400 Received: from out1.zte.com.cn ([202.103.147.172]:47434 "EHLO mxct.zte.com.cn" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438188AbgE2BAD (ORCPT ); Thu, 28 May 2020 21:00:03 -0400 Received: from mse-fl2.zte.com.cn (unknown [10.30.14.239]) by Forcepoint Email with ESMTPS id 4B46AFCA235482BF5DB5; Fri, 29 May 2020 08:59:50 +0800 (CST) Received: from notes_smtp.zte.com.cn (notessmtp.zte.com.cn [10.30.1.239]) by mse-fl2.zte.com.cn with ESMTP id 04T0xnMT013756; Fri, 29 May 2020 08:59:49 +0800 (GMT-8) (envelope-from wang.yi59@zte.com.cn) Received: from fox-host8.localdomain ([10.74.120.8]) by szsmtp06.zte.com.cn (Lotus Domino Release 8.5.3FP6) with ESMTP id 2020052909002322-3735728 ; Fri, 29 May 2020 09:00:23 +0800 From: Yi Wang To: bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, xue.zhihong@zte.com.cn, wang.yi59@zte.com.cn, wang.liang82@zte.com.cn, Liao Pingfang Subject: [PATCH] PCI: Replace kmalloc with kzalloc in the comment/message Date: Fri, 29 May 2020 09:01:59 +0800 Message-Id: <1590714119-15744-1-git-send-email-wang.yi59@zte.com.cn> X-Mailer: git-send-email 1.8.3.1 X-MIMETrack: Itemize by SMTP Server on SZSMTP06/server/zte_ltd(Release 8.5.3FP6|November 21, 2013) at 2020-05-29 09:00:23, Serialize by Router on notes_smtp/zte_ltd(Release 9.0.1FP7|August 17, 2016) at 2020-05-29 08:59:53, Serialize complete at 2020-05-29 08:59:53 X-MAIL: mse-fl2.zte.com.cn 04T0xnMT013756 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Liao Pingfang Use kzalloc instead of kmalloc in the comment/message according to the previous kzalloc() call. Signed-off-by: Liao Pingfang --- drivers/pci/hotplug/ibmphp_pci.c | 2 +- drivers/pci/setup-bus.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/hotplug/ibmphp_pci.c b/drivers/pci/hotplug/ibmphp_pci.c index e22d023..2d36992 100644 --- a/drivers/pci/hotplug/ibmphp_pci.c +++ b/drivers/pci/hotplug/ibmphp_pci.c @@ -205,7 +205,7 @@ int ibmphp_configure_card(struct pci_func *func, u8 slotno) cur_func->next = newfunc; rc = ibmphp_configure_card(newfunc, slotno); - /* This could only happen if kmalloc failed */ + /* This could only happen if kzalloc failed */ if (rc) { /* We need to do this in case bridge itself got configured properly, but devices behind it failed */ func->bus = 1; /* To indicate to the unconfigure function that this is a PPB */ diff --git a/drivers/pci/setup-bus.c b/drivers/pci/setup-bus.c index bbcef1a..13c5a44 100644 --- a/drivers/pci/setup-bus.c +++ b/drivers/pci/setup-bus.c @@ -151,7 +151,7 @@ static void pdev_sort_resources(struct pci_dev *dev, struct list_head *head) tmp = kzalloc(sizeof(*tmp), GFP_KERNEL); if (!tmp) - panic("pdev_sort_resources(): kmalloc() failed!\n"); + panic("%s: kzalloc() failed!\n", __func__); tmp->res = r; tmp->dev = dev; -- 2.9.5