diff options
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/octeon/octeon/autoconf.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/arch/octeon/octeon/autoconf.c b/sys/arch/octeon/octeon/autoconf.c index fe6084d7bc6..7b4434c2449 100644 --- a/sys/arch/octeon/octeon/autoconf.c +++ b/sys/arch/octeon/octeon/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.8 2016/05/18 01:21:40 visa Exp $ */ +/* $OpenBSD: autoconf.c,v 1.9 2016/11/26 16:31:32 martijn Exp $ */ /* * Copyright (c) 2009 Miodrag Vallat. * @@ -89,7 +89,9 @@ parse_uboot_root(void) */ p = strrchr(uboot_rootdev, '/'); if (p == NULL) - return; + p = strchr(uboot_rootdev, '='); + if (p == NULL) + return; p++; len = strlen(p); |