diff options
| author | 2018-06-28 14:07:57 +0200 | |
|---|---|---|
| committer | 2018-06-28 14:07:57 +0200 | |
| commit | 6b16f5d12202a23d875915349cc031c07fe1b3ec (patch) | |
| tree | f43421d097fe0b2fd21feef9315dacd2bc205a31 /kernel/fail_function.c | |
| parent | fb_omap2: add gpiolib dependency (diff) | |
| parent | Linux 4.18-rc2 (diff) | |
Merge tag 'v4.18-rc2' of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux into fbdev-for-next
Linux 4.18-rc2
Diffstat (limited to 'kernel/fail_function.c')
| -rw-r--r-- | kernel/fail_function.c | 2 |
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, /* 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; |
