mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
complain when you do not create a TLSB node
This commit is contained in:
parent
69dfb51f72
commit
4cf46078d1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=58656
@ -280,13 +280,15 @@ tlsb_add_child(struct tlsb_softc *tlsb, struct tlsb_device *tdev)
|
||||
cpuproto += 2;
|
||||
break;
|
||||
default:
|
||||
printf("tlsb_add_child: unknown TLSB node type 0x%x\n", dtype);
|
||||
return;
|
||||
}
|
||||
|
||||
for (i = 0; i < units; i++, unit++) {
|
||||
cd = device_add_child_ordered(tlsb->tlsb_dev, ordr, dn, unit);
|
||||
if (cd == NULL)
|
||||
if (cd == NULL) {
|
||||
return;
|
||||
}
|
||||
device_set_ivars(cd, tdev);
|
||||
device_set_desc(cd, tlsb_node_type_str(dtype));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user