Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108410997
D40558.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.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
Sat, Jan 25, 1:53 PM (17 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16146321
Default Alt Text
D40558.diff (536 B)
Attached To
Mode
D40558: bhyve: use assert for missing TPM version
Attached
Detach File
Event Timeline
Log In to Comment