Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)))