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

Commit 895ce6c8 authored by Geliang Tang's avatar Geliang Tang Committed by Greg Kroah-Hartman
Browse files

debugfs: set no_llseek in DEFINE_DEBUGFS_ATTRIBUTE



In DEFINE_DEBUGFS_ATTRIBUTE() macro, since we use nonseekable_open() to
open, we should use no_llseek() to seek, not generic_file_llseek().

Signed-off-by: default avatarGeliang Tang <geliangtang@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 96fb7e25
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -74,7 +74,7 @@ static const struct file_operations __fops = { \
	.release = simple_attr_release,					\
	.read	 = debugfs_attr_read,					\
	.write	 = debugfs_attr_write,					\
	.llseek  = generic_file_llseek,					\
	.llseek  = no_llseek,						\
}

#if defined(CONFIG_DEBUG_FS)