Re: [PATCH 04/10] nvme: add nvme_auth_derive_tls_psk()

Maurizio Lombardi
2024-12-02T17:05:14Z

po 2. 12. 2024 v 15:32 odesílatel Hannes Reinecke <hare@kernel.org> napsal:
> + ret = crypto_shash_setkey(hmac_tfm, prk, prk_len);
> + if (ret)
> + goto out_free_prk;
> +
> + info_len = strlen(psk_digest) + strlen(psk_prefix) + 5;
> + info = kzalloc(info_len, GFP_KERNEL);
> + if (!info)
> + goto out_free_prk;

ret should be set to ENOMEM here

Maurizio