Use no_llseek as the llseek callback for efivarfs files, as we don't support writes to arbitrary locations. Signed-off-by: Jeremy Kerr <jeremy.kerr@xxxxxxxxxxxxx> --- drivers/firmware/efivars.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/firmware/efivars.c b/drivers/firmware/efivars.c index 73f22d1..a162649 100644 --- a/drivers/firmware/efivars.c +++ b/drivers/firmware/efivars.c @@ -847,7 +847,7 @@ static const struct file_operations efivarfs_file_operations = { .open = efivarfs_file_open, .read = efivarfs_file_read, .write = efivarfs_file_write, - .llseek = default_llseek, + .llseek = no_llseek, }; static struct inode *efivarfs_get_inode(struct super_block *sb, -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html