]> Git Repo - linux.git/commit - fs/ext4/sysfs.c
ext4: check return value of kstrtoull correctly in reserved_clusters_store
authorChao Yu <[email protected]>
Fri, 23 Jun 2017 05:08:22 +0000 (01:08 -0400)
committerTheodore Ts'o <[email protected]>
Fri, 23 Jun 2017 05:08:22 +0000 (01:08 -0400)
commit1ea1516fbbab2b30bf98c534ecaacba579a35208
tree4a17a8c944a67eb2e00ea0fadad1fdeda3e967b4
parent4a4956249dac0b9b0027949907bff0cd1a9b57fa
ext4: check return value of kstrtoull correctly in reserved_clusters_store

kstrtoull returns 0 on success, however, in reserved_clusters_store we
will return -EINVAL if kstrtoull returns 0, it makes us fail to update
reserved_clusters value through sysfs.

Fixes: 76d33bca5581b1dd5c3157fa168db849a784ada4
Cc: [email protected] # 4.4
Signed-off-by: Chao Yu <[email protected]>
Signed-off-by: Miao Xie <[email protected]>
Signed-off-by: Theodore Ts'o <[email protected]>
fs/ext4/sysfs.c
This page took 0.053518 seconds and 4 git commands to generate.