aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs')
-rw-r--r--fs/sysfs/file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c
index e9ef59b3abb1..589abee16a39 100644
--- a/fs/sysfs/file.c
+++ b/fs/sysfs/file.c
@@ -125,7 +125,7 @@ static ssize_t sysfs_kf_bin_write(struct kernfs_open_file *of, char *buf,
125 125
126 if (size) { 126 if (size) {
127 if (size <= pos) 127 if (size <= pos)
128 return 0; 128 return -EFBIG;
129 count = min_t(ssize_t, count, size - pos); 129 count = min_t(ssize_t, count, size - pos);
130 } 130 }
131 if (!count) 131 if (!count)