Unverified Commit ab5c423a authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents e52c4ee3 dd5de9f6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -314,9 +314,11 @@ write_tag_66_packet(char *signature, u8 cipher_code,
	 *         | Key Identifier Size      | 1 or 2 bytes |
	 *         | Key Identifier           | arbitrary    |
	 *         | File Encryption Key Size | 1 or 2 bytes |
	 *         | Cipher Code              | 1 byte       |
	 *         | File Encryption Key      | arbitrary    |
	 *         | Checksum                 | 2 bytes      |
	 */
	data_len = (5 + ECRYPTFS_SIG_SIZE_HEX + crypt_stat->key_size);
	data_len = (8 + ECRYPTFS_SIG_SIZE_HEX + crypt_stat->key_size);
	*packet = kmalloc(data_len, GFP_KERNEL);
	message = *packet;
	if (!message) {