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

Commit d3de0eb1 authored by Linus Torvalds's avatar Linus Torvalds
Browse files
parents b06ac5a3 57f9bdac
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -340,7 +340,7 @@ static int sysfs_open_file(struct inode *inode, struct file *file)
	char *p;

	p = d_path(&file->f_path, last_sysfs_file, sizeof(last_sysfs_file));
	if (p)
	if (!IS_ERR(p))
		memmove(last_sysfs_file, p, strlen(p) + 1);

	/* need attr_sd for attr and ops, its parent for kobj */