]> git.ipfire.org Git - thirdparty/qemu.git/commit
backends/tpm: Avoid using g_alloca()
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 5 Jun 2025 17:54:58 +0000 (19:54 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 10 Jun 2025 10:59:09 +0000 (12:59 +0200)
commit0ff9cd9a6af54ccaa293e252aa356fb150788099
tree7c9e6d5447155593eae26c1d194c2cc21f403382
parentc7785e243195799749242b5fc741b8fbf1053f82
backends/tpm: Avoid using g_alloca()

tpm_emulator_ctrlcmd() is not in hot path.
Use the heap instead of the stack, removing
the g_alloca() call.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-Id: <20250605193540.59874-3-philmd@linaro.org>
backends/tpm/tpm_emulator.c