Commit 1ec5584e authored by Arnd Bergmann's avatar Arnd Bergmann

libfs: use generic_file_llseek for simple_attr

Simple attribute files need to be seekable to
allow resetting the file for another read.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent a0572d93
...@@ -2450,6 +2450,7 @@ static const struct file_operations __fops = { \ ...@@ -2450,6 +2450,7 @@ static const struct file_operations __fops = { \
.release = simple_attr_release, \ .release = simple_attr_release, \
.read = simple_attr_read, \ .read = simple_attr_read, \
.write = simple_attr_write, \ .write = simple_attr_write, \
.llseek = generic_file_llseek, \
}; };
static inline void __attribute__((format(printf, 1, 2))) static inline void __attribute__((format(printf, 1, 2)))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment