Unverified Commit fa213da1 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files
parents 90bd060f 6d719165
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -300,9 +300,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) {