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: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
parent
a0572d93c1
commit
1ec5584e3e
|
@ -2450,6 +2450,7 @@ static const struct file_operations __fops = { \
|
|||
.release = simple_attr_release, \
|
||||
.read = simple_attr_read, \
|
||||
.write = simple_attr_write, \
|
||||
.llseek = generic_file_llseek, \
|
||||
};
|
||||
|
||||
static inline void __attribute__((format(printf, 1, 2)))
|
||||
|
|
Loading…
Reference in New Issue