aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fail_function.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fail_function.c')
-rw-r--r--kernel/fail_function.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fail_function.c b/kernel/fail_function.c
index 1d5632d8bbcc..5349c91c2298 100644
--- 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,
258 /* cut off if it is too long */ 258 /* cut off if it is too long */
259 if (count > KSYM_NAME_LEN) 259 if (count > KSYM_NAME_LEN)
260 count = KSYM_NAME_LEN; 260 count = KSYM_NAME_LEN;
261 buf = kmalloc(sizeof(char) * (count + 1), GFP_KERNEL); 261 buf = kmalloc(count + 1, GFP_KERNEL);
262 if (!buf) 262 if (!buf)
263 return -ENOMEM; 263 return -ENOMEM;
264 264