diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2018-03-14 03:45:33 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2018-03-14 03:45:33 +0000 |
| commit | 049f53933929746636b2ece6a7a985d77147f02b (patch) | |
| tree | 8149b31309a01fdc8280984e667c17bad372a2f7 /sys/dev/ofw | |
| parent | 7d63bfe44b7b0a0158aad44389f644db324b82de (diff) | |
Notes
Diffstat (limited to 'sys/dev/ofw')
| -rw-r--r-- | sys/dev/ofw/openfirm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/ofw/openfirm.c b/sys/dev/ofw/openfirm.c index 45545ac34647..dc781d42ad8c 100644 --- a/sys/dev/ofw/openfirm.c +++ b/sys/dev/ofw/openfirm.c @@ -201,6 +201,12 @@ OF_install(char *name, int prio) ofw_def_t *ofwp, **ofwpp; static int curr_prio = 0; + /* Allow OF layer to be uninstalled */ + if (name == NULL) { + ofw_def_impl = NULL; + return (FALSE); + } + /* * Try and locate the OFW kobj corresponding to the name. */ |
