projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kmalloc() -> kmalloc_array()
[linux-block.git]
/
kernel
/
fail_function.c
diff --git
a/kernel/fail_function.c
b/kernel/fail_function.c
index 1d5632d8bbccfd941a6b0b1cf0ac380c4aeb0a5c..5349c91c22983c4b9dc0d362aacf9579a705cf70 100644
(file)
--- a/
kernel/fail_function.c
+++ b/
kernel/fail_function.c
@@
-258,7
+258,7
@@
static ssize_t fei_write(struct file *file, const char __user *buffer,
/* cut off if it is too long */
if (count > KSYM_NAME_LEN)
count = KSYM_NAME_LEN;
- buf = kmalloc(
sizeof(char) * (count + 1)
, GFP_KERNEL);
+ buf = kmalloc(
count + 1
, GFP_KERNEL);
if (!buf)
return -ENOMEM;