aboutsummaryrefslogtreecommitdiffstats
path: root/block/blk-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r--block/blk-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c
index 5efc5a647183..3aa5b195f4dd 100644
--- a/block/blk-sysfs.c
+++ b/block/blk-sysfs.c
@@ -29,7 +29,7 @@ queue_var_store(unsigned long *var, const char *page, size_t count)
29 int err; 29 int err;
30 unsigned long v; 30 unsigned long v;
31 31
32 err = strict_strtoul(page, 10, &v); 32 err = kstrtoul(page, 10, &v);
33 if (err || v > UINT_MAX) 33 if (err || v > UINT_MAX)
34 return -EINVAL; 34 return -EINVAL;
35 35