Unverified Commit 9560420d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 6eb0bad1 038c66f3
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -557,9 +557,11 @@ static int ea_get(struct inode *inode, struct ea_buffer *ea_buf, int min_size)

      size_check:
	if (EALIST_SIZE(ea_buf->xattr) != ea_size) {
		int size = min_t(int, EALIST_SIZE(ea_buf->xattr), ea_size);

		printk(KERN_ERR "ea_get: invalid extended attribute\n");
		print_hex_dump(KERN_ERR, "", DUMP_PREFIX_ADDRESS, 16, 1,
				     ea_buf->xattr, ea_size, 1);
				     ea_buf->xattr, size, 1);
		ea_release(inode, ea_buf);
		rc = -EIO;
		goto clean_up;