Loading drivers/md/raid5.c +5 −2 Original line number Diff line number Diff line Loading @@ -6575,14 +6575,17 @@ static ssize_t raid5_store_group_thread_cnt(struct mddev *mddev, const char *page, size_t len) { struct r5conf *conf; unsigned long new; unsigned int new; int err; struct r5worker_group *new_groups, *old_groups; int group_cnt, worker_cnt_per_group; if (len >= PAGE_SIZE) return -EINVAL; if (kstrtoul(page, 10, &new)) if (kstrtouint(page, 10, &new)) return -EINVAL; /* 8192 should be big enough */ if (new > 8192) return -EINVAL; err = mddev_lock(mddev); Loading Loading
drivers/md/raid5.c +5 −2 Original line number Diff line number Diff line Loading @@ -6575,14 +6575,17 @@ static ssize_t raid5_store_group_thread_cnt(struct mddev *mddev, const char *page, size_t len) { struct r5conf *conf; unsigned long new; unsigned int new; int err; struct r5worker_group *new_groups, *old_groups; int group_cnt, worker_cnt_per_group; if (len >= PAGE_SIZE) return -EINVAL; if (kstrtoul(page, 10, &new)) if (kstrtouint(page, 10, &new)) return -EINVAL; /* 8192 should be big enough */ if (new > 8192) return -EINVAL; err = mddev_lock(mddev); Loading