* [PATCH -mm] fault-inject: don't convert unsigned type value as signed int
@ 2017-04-17 15:54 Akinobu Mita
0 siblings, 0 replies; only message in thread
From: Akinobu Mita @ 2017-04-17 15:54 UTC (permalink / raw)
To: akpm, linux-kernel; +Cc: Akinobu Mita, Dmitry Vyukov
This fixes fault-inject-simplify-access-check-for-fail-nth.patch in -mm
tree which by mistake partially reverts the change by fault-inject-
parse-as-natural-1-based-value-for-fail-nth-write-interface.patch.
Cc: Dmitry Vyukov <dvyukov@google.com>
Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
---
fs/proc/base.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/proc/base.c b/fs/proc/base.c
index ea1039d..1f5139e 100644
--- a/fs/proc/base.c
+++ b/fs/proc/base.c
@@ -1366,7 +1366,7 @@ static ssize_t proc_fail_nth_write(struct file *file, const char __user *buf,
int err;
unsigned int n;
- err = kstrtoint_from_user(buf, count, 0, &n);
+ err = kstrtouint_from_user(buf, count, 0, &n);
if (err)
return err;
--
2.7.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-04-17 15:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-17 15:54 [PATCH -mm] fault-inject: don't convert unsigned type value as signed int Akinobu Mita
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).