diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/proc/kcore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/kcore.c b/fs/proc/kcore.c index 8d6d85d7400f..6a984f64edd7 100644 --- a/fs/proc/kcore.c +++ b/fs/proc/kcore.c | |||
@@ -382,7 +382,7 @@ read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) | |||
382 | */ | 382 | */ |
383 | if (n) { | 383 | if (n) { |
384 | if (clear_user(buffer + tsz - n, | 384 | if (clear_user(buffer + tsz - n, |
385 | tsz - n)) | 385 | n)) |
386 | return -EFAULT; | 386 | return -EFAULT; |
387 | } | 387 | } |
388 | } else { | 388 | } else { |