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

Commit 0ec4a5b6 authored by Kinglong Mee's avatar Kinglong Mee Committed by Jaegeuk Kim
Browse files

f2fs: drop the duplicate pval in f2fs_getxattr



Fixes: ba38c27e ("f2fs: enhance lookup xattr")
Signed-off-by: default avatarKinglong Mee <kinglongmee@gmail.com>
Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
parent 5f35a2cd
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -467,7 +467,6 @@ int f2fs_getxattr(struct inode *inode, int index, const char *name,
	struct f2fs_xattr_entry *entry = NULL;
	struct f2fs_xattr_entry *entry = NULL;
	int error = 0;
	int error = 0;
	unsigned int size, len;
	unsigned int size, len;
	char *pval;
	void *base_addr = NULL;
	void *base_addr = NULL;


	if (name == NULL)
	if (name == NULL)
@@ -489,8 +488,6 @@ int f2fs_getxattr(struct inode *inode, int index, const char *name,
		goto out;
		goto out;
	}
	}


	pval = entry->e_name + entry->e_name_len;

	if (buffer) {
	if (buffer) {
		char *pval = entry->e_name + entry->e_name_len;
		char *pval = entry->e_name + entry->e_name_len;
		memcpy(buffer, pval, size);
		memcpy(buffer, pval, size);