Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F142070939
D40558.id123265.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
536 B
Referenced Files
None
Subscribers
None
D40558.id123265.diff
View Options
diff --git a/usr.sbin/bhyve/tpm_device.c b/usr.sbin/bhyve/tpm_device.c
--- a/usr.sbin/bhyve/tpm_device.c
+++ b/usr.sbin/bhyve/tpm_device.c
@@ -7,6 +7,7 @@
#include <sys/types.h>
+#include <assert.h>
#include <err.h>
#include <errno.h>
#include <stdlib.h>
@@ -54,7 +55,8 @@
}
value = get_config_value_node(nvl, "version");
- if (value == NULL || strcmp(value, "2.0")) {
+ assert(value != NULL);
+ if (strcmp(value, "2.0")) {
warnx("%s: unsupported tpm version %s", __func__, value);
error = EINVAL;
goto err_out;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 16, 6:09 PM (1 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27664913
Default Alt Text
D40558.id123265.diff (536 B)
Attached To
Mode
D40558: bhyve: use assert for missing TPM version
Attached
Detach File
Event Timeline
Log In to Comment