Re: [PATCH 11/12: eCryptfs] Keystore

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2 Nov 2005, Phillip Hellewell wrote:

> +	password_s_ptr = &auth_tok->token.password;
> +	if (password_s_ptr->session_key_encryption_key_set) {
> +		ecryptfs_printk(1, KERN_NOTICE, "Session key encryption key "
> +				"set; skipping key generation\n");
> +		goto session_key_encryption_key_set;
> +	}
> +      session_key_encryption_key_set:
> +	ecryptfs_printk(1, KERN_NOTICE, "Session key encryption key (size [%d])"
> +			":\n", password_s_ptr->session_key_encryption_key_size);

Spurious goto?

> +out:
> +	if (tfm)
> +		crypto_free_tfm(tfm);
> +	return rc;

Just call crypto_free_tfm() unconditionally.


- James
-- 
James Morris
<[email protected]>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux