1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-27 07:22:31 +03:00

repart: Use ASSERT_PTR() in partition_encrypt()

This commit is contained in:
Daan De Meyer 2022-11-21 10:45:26 +01:00
parent 983154f518
commit 922576e452

View File

@ -3154,8 +3154,8 @@ static int partition_target_sync(Context *context, Partition *p, PartitionTarget
static int partition_encrypt(Context *context, Partition *p, const char *node) {
#if HAVE_LIBCRYPTSETUP && HAVE_CRYPT_SET_DATA_OFFSET && HAVE_CRYPT_REENCRYPT_INIT_BY_PASSPHRASE && HAVE_CRYPT_REENCRYPT
struct crypt_params_luks2 luks_params = {
.label = strempty(p->new_label),
.sector_size = context->sector_size,
.label = strempty(ASSERT_PTR(p)->new_label),
.sector_size = ASSERT_PTR(context)->sector_size,
.data_device = node,
};
struct crypt_params_reencrypt reencrypt_params = {