kern_shutdown: Add missing EKCD ifdef

Submitted by:	Puneeth Jothaiah <puneethkumar.jothaia AT dell.com>
Reviewed by:	bdrewery
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2020-03-12 21:26:36 +00:00
parent 8838296e56
commit 7a119578a4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=358922

View File

@ -1231,6 +1231,7 @@ dumper_insert(const struct dumperinfo *di_template, const char *devname,
#endif
}
if (kda->kda_compression != KERNELDUMP_COMP_NONE) {
#ifdef EKCD
/*
* We can't support simultaneous unpadded block cipher
* encryption and compression because there is no guarantee the
@ -1241,6 +1242,7 @@ dumper_insert(const struct dumperinfo *di_template, const char *devname,
error = EOPNOTSUPP;
goto cleanup;
}
#endif
newdi->kdcomp = kerneldumpcomp_create(newdi,
kda->kda_compression);
if (newdi->kdcomp == NULL) {