From: Zbigniew Jędrzejewski-Szmek Date: Tue, 5 May 2026 09:10:25 +0000 (+0200) Subject: cryptsetup: avoid a segfault when a keyfile is passed along with a TPM device (#41892) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8d01ff7a8885ac5f9c57d0ec4f92d1c25440f9b;p=thirdparty%2Fsystemd.git cryptsetup: avoid a segfault when a keyfile is passed along with a TPM device (#41892) A segfault is observed when both key_file and tpm2-device are simultaneously passed to systemd-cryptsetup, e.g.: systemd-cryptsetup attach test_data /vol /my-pass tpm2-device=auto The crash appears after commit 5c6aad9 but the flaw in the logic was pre-existing. Fixes #41867 --- f8d01ff7a8885ac5f9c57d0ec4f92d1c25440f9b