projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fs: sysfs: return EGBIG on write if offset is larger than file size
[deliverable/linux.git]
/
fs
/
sysfs
/
file.c
diff --git
a/fs/sysfs/file.c
b/fs/sysfs/file.c
index e9ef59b3abb1e5552cdc2a8880df37b85093d249..589abee16a392edf20fadc6bab84f4b9d5789104 100644
(file)
--- 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,
if (size) {
if (size <= pos)
- return
0
;
+ return
-EFBIG
;
count = min_t(ssize_t, count, size - pos);
}
if (!count)
This page took
0.023331 seconds
and
5
git commands to generate.