From: yalin wang <yalin.wang2010@gmail.com>
To: ulf.hansson@linaro.org, adrian.hunter@intel.com,
ben@decadent.org.uk, jh80.chung@samsung.com,
asaf.vertz@tandemg.com, tklauser@distanz.ch,
jonathanh@nvidia.com, JBottomley@Odin.com, grundler@chromium.org,
linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: yalin wang <yalin.wang2010@gmail.com>
Subject: [PATCH] mmc: change to use kmalloc
Date: Wed, 11 Nov 2015 12:23:11 +0800 [thread overview]
Message-ID: <1447215791-19429-1-git-send-email-yalin.wang2010@gmail.com> (raw)
Use kmalloc instead of kzalloc, zero the memory is not needed.
Signed-off-by: yalin wang <yalin.wang2010@gmail.com>
---
drivers/mmc/card/block.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mmc/card/block.c b/drivers/mmc/card/block.c
index 23b6c8e..975cd3e 100644
--- a/drivers/mmc/card/block.c
+++ b/drivers/mmc/card/block.c
@@ -365,7 +365,7 @@ static struct mmc_blk_ioc_data *mmc_blk_ioctl_copy_from_user(
if (!idata->buf_bytes)
return idata;
- idata->buf = kzalloc(idata->buf_bytes, GFP_KERNEL);
+ idata->buf = kmalloc(idata->buf_bytes, GFP_KERNEL);
if (!idata->buf) {
err = -ENOMEM;
goto idata_err;
--
1.9.1
next reply other threads:[~2015-11-11 4:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-11 4:23 yalin wang [this message]
2015-11-11 17:02 ` [PATCH] mmc: change to use kmalloc Alim Akhtar
2015-11-11 21:17 ` Peter Hurley
2015-11-11 21:57 ` Andy Shevchenko
2015-11-12 11:27 ` yalin wang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447215791-19429-1-git-send-email-yalin.wang2010@gmail.com \
--to=yalin.wang2010@gmail.com \
--cc=JBottomley@Odin.com \
--cc=adrian.hunter@intel.com \
--cc=asaf.vertz@tandemg.com \
--cc=ben@decadent.org.uk \
--cc=grundler@chromium.org \
--cc=jh80.chung@samsung.com \
--cc=jonathanh@nvidia.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mmc@vger.kernel.org \
--cc=tklauser@distanz.ch \
--cc=ulf.hansson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox