diff options
Diffstat (limited to 'drivers/misc/sgi-gru/gruprocfs.c')
-rw-r--r-- | drivers/misc/sgi-gru/gruprocfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/misc/sgi-gru/gruprocfs.c b/drivers/misc/sgi-gru/gruprocfs.c index ee74821b171c..c46c1c5f0c73 100644 --- a/drivers/misc/sgi-gru/gruprocfs.c +++ b/drivers/misc/sgi-gru/gruprocfs.c | |||
@@ -84,6 +84,8 @@ static int statistics_show(struct seq_file *s, void *p) | |||
84 | printstat(s, tlb_dropin_fail_range_active); | 84 | printstat(s, tlb_dropin_fail_range_active); |
85 | printstat(s, tlb_dropin_fail_idle); | 85 | printstat(s, tlb_dropin_fail_idle); |
86 | printstat(s, tlb_dropin_fail_fmm); | 86 | printstat(s, tlb_dropin_fail_fmm); |
87 | printstat(s, tlb_dropin_fail_no_exception); | ||
88 | printstat(s, tlb_dropin_fail_no_exception_war); | ||
87 | printstat(s, mmu_invalidate_range); | 89 | printstat(s, mmu_invalidate_range); |
88 | printstat(s, mmu_invalidate_page); | 90 | printstat(s, mmu_invalidate_page); |
89 | printstat(s, mmu_clear_flush_young); | 91 | printstat(s, mmu_clear_flush_young); |
@@ -158,8 +160,7 @@ static ssize_t options_write(struct file *file, const char __user *userbuf, | |||
158 | unsigned long val; | 160 | unsigned long val; |
159 | char buf[80]; | 161 | char buf[80]; |
160 | 162 | ||
161 | if (copy_from_user | 163 | if (strncpy_from_user(buf, userbuf, sizeof(buf) - 1) < 0) |
162 | (buf, userbuf, count < sizeof(buf) ? count : sizeof(buf))) | ||
163 | return -EFAULT; | 164 | return -EFAULT; |
164 | buf[count - 1] = '\0'; | 165 | buf[count - 1] = '\0'; |
165 | if (!strict_strtoul(buf, 10, &val)) | 166 | if (!strict_strtoul(buf, 10, &val)) |