[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1590714081-15574-1-git-send-email-wang.yi59@zte.com.cn>
Date: Fri, 29 May 2020 09:01:21 +0800
From: Yi Wang <wang.yi59@....com.cn>
To: sudeep.dutt@...el.com
Cc: ashutosh.dixit@...el.com, arnd@...db.de,
gregkh@...uxfoundation.org, alexios.zavras@...el.com,
tglx@...utronix.de, allison@...utok.net,
linux-kernel@...r.kernel.org, xue.zhihong@....com.cn,
wang.yi59@....com.cn, wang.liang82@....com.cn,
Liao Pingfang <liao.pingfang@....com.cn>
Subject: [PATCH] misc: mic: Replace kmalloc with kzalloc in the error message
From: Liao Pingfang <liao.pingfang@....com.cn>
Use kzalloc instead of kmalloc in the error message according to
the previous kzalloc() call.
Signed-off-by: Liao Pingfang <liao.pingfang@....com.cn>
---
drivers/misc/mic/host/mic_main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/mic/host/mic_main.c b/drivers/misc/mic/host/mic_main.c
index be0784f..8296f31 100644
--- a/drivers/misc/mic/host/mic_main.c
+++ b/drivers/misc/mic/host/mic_main.c
@@ -164,7 +164,7 @@ static int mic_probe(struct pci_dev *pdev,
mdev = kzalloc(sizeof(*mdev), GFP_KERNEL);
if (!mdev) {
rc = -ENOMEM;
- dev_err(&pdev->dev, "mdev kmalloc failed rc %d\n", rc);
+ dev_err(&pdev->dev, "mdev kzalloc failed rc %d\n", rc);
goto mdev_alloc_fail;
}
mdev->id = ida_simple_get(&g_mic_ida, 0, MIC_MAX_NUM_DEVS, GFP_KERNEL);
--
2.9.5
Powered by blists - more mailing lists