9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 5fc3dd8d06971638cd2094374b9c397407b22cdc
parent cccce1659a14d7e69a2a2b3d200557f20f259a98
Author: Roberto Vargas <roberto.vargas@arm.com>
Date:   Thu, 21 Feb 2019 10:25:54 +0000

[drivers] Fix namec()

It was using the full path instead of using the current
element of the path.

Change-Id: Id6fa2985046cac7ab3b24bcc7e343950fb0053bd

Diffstat:
Mdrivers/dev.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dev.c b/drivers/dev.c @@ -152,7 +152,7 @@ namec(const char *name, int mode) return NULL; for (s = next(s, elem); *elem; s = next(s, elem)) { - if (devtab[c->type]->walk(c, name) < 0) + if (devtab[c->type]->walk(c, elem) < 0) goto notfound; } if (!s)