From: Nicholas Krause <xerofoify@gmail.com>
To: gregkh@linuxfoundation.org
Cc: john.stultz@linaro.org, paul.gortmaker@windriver.com,
gang.chen.5i5j@gmail.com, yongjun_wei@trendmicro.com.cn,
dan.carpenter@oracle.com, tomas.winkler@intel.com,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] staging: Change kzalloc to kcalloc
Date: Wed, 23 Jul 2014 19:03:01 -0400 [thread overview]
Message-ID: <1406156581-6052-1-git-send-email-xerofoify@gmail.com> (raw)
This changes the call to kzalloc to kcalloc in ion_dummy_driver
for allocating the heap.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
drivers/staging/android/ion/ion_dummy_driver.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/staging/android/ion/ion_dummy_driver.c b/drivers/staging/android/ion/ion_dummy_driver.c
index 3a45e79..8883432 100644
--- a/drivers/staging/android/ion/ion_dummy_driver.c
+++ b/drivers/staging/android/ion/ion_dummy_driver.c
@@ -67,9 +67,8 @@ static int __init ion_dummy_init(void)
{
int i, err;
idev = ion_device_create(NULL);
- heaps = kzalloc(sizeof(struct ion_heap *) * dummy_ion_pdata.nr,
- GFP_KERNEL);
+ heaps = kcalloc(*dummy_ion_pdata.nr , sizeof((struct ion_heap *) *dummy_ion_pdata.nr) , GFP_KERNEL);
if (!heaps)
return -ENOMEM;
--
1.9.1
next reply other threads:[~2014-07-23 23:03 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-23 23:03 Nicholas Krause [this message]
2014-07-23 23:07 ` David Rientjes
2014-07-23 23:08 ` Richard Weinberger
2014-07-24 14:47 ` Steven Rostedt
2014-07-24 14:51 ` Steven Rostedt
2014-07-24 16:15 ` Måns Rullgård
2014-07-24 16:31 ` Nick Krause
2014-07-24 16:34 ` Måns Rullgård
2014-07-24 16:35 ` Nick Krause
2014-07-24 16:47 ` Måns Rullgård
2014-07-24 16:50 ` Nick Krause
2014-07-24 17:18 ` Steven Rostedt
2014-07-24 17:30 ` Harvey Harrison
2014-07-24 17:48 ` Steven Rostedt
2014-07-24 18:41 ` Nick Krause
2014-07-24 18:49 ` Richard Weinberger
2014-07-24 18:55 ` Nick Krause
2014-07-24 19:05 ` Nick Krause
2014-07-24 19:11 ` Richard Weinberger
2014-07-25 2:15 ` Chen Gang
2014-07-25 2:20 ` Nick Krause
2014-07-25 2:47 ` Chen Gang
2014-07-25 2:53 ` Nick Krause
2014-07-25 3:09 ` Chen Gang
2014-07-25 3:13 ` Nick Krause
2014-07-25 3:21 ` Chen Gang
2014-07-25 3:30 ` Nick Krause
2014-07-25 3:34 ` Chen Gang
2014-07-25 3:39 ` Nick Krause
2014-07-25 4:33 ` Chen Gang
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=1406156581-6052-1-git-send-email-xerofoify@gmail.com \
--to=xerofoify@gmail.com \
--cc=dan.carpenter@oracle.com \
--cc=devel@driverdev.osuosl.org \
--cc=gang.chen.5i5j@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=john.stultz@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=paul.gortmaker@windriver.com \
--cc=tomas.winkler@intel.com \
--cc=yongjun_wei@trendmicro.com.cn \
/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
Powered by JetHome