Changeset View
Changeset View
Standalone View
Standalone View
head/sys/geom/geom_dev.c
Show First 20 Lines • Show All 608 Lines • ▼ Show 20 Lines | if (kda->kda_encryption != KERNELDUMP_ENC_NONE) { | ||||
kda->kda_encryptedkeysize); | kda->kda_encryptedkeysize); | ||||
} else { | } else { | ||||
encryptedkey = NULL; | encryptedkey = NULL; | ||||
} | } | ||||
if (error == 0) { | if (error == 0) { | ||||
kda->kda_encryptedkey = encryptedkey; | kda->kda_encryptedkey = encryptedkey; | ||||
error = g_dev_setdumpdev(dev, kda); | error = g_dev_setdumpdev(dev, kda); | ||||
} | } | ||||
if (encryptedkey != NULL) { | zfree(encryptedkey, M_TEMP); | ||||
explicit_bzero(encryptedkey, kda->kda_encryptedkeysize); | |||||
free(encryptedkey, M_TEMP); | |||||
} | |||||
explicit_bzero(kda, sizeof(*kda)); | explicit_bzero(kda, sizeof(*kda)); | ||||
break; | break; | ||||
} | } | ||||
case DIOCGFLUSH: | case DIOCGFLUSH: | ||||
error = g_io_flush(cp); | error = g_io_flush(cp); | ||||
break; | break; | ||||
case DIOCGDELETE: | case DIOCGDELETE: | ||||
offset = ((off_t *)data)[0]; | offset = ((off_t *)data)[0]; | ||||
▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines |