summaryrefslogtreecommitdiffstats
path: root/fs/devfs-core.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2019-10-21 19:00:44 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-10-23 09:10:43 +0200
commit4a2e799263de5acabc1881e5330cf87b1aee7451 (patch)
tree5241d48ca1d9c60c574eec7f5fb4907cd5b9fcd5 /fs/devfs-core.c
parentfbc7ee7c5b1d3eba95501d25a4ad799b82e6b94e (diff)
downloadbarebox-4a2e799263de5acabc1881e5330cf87b1aee7451.tar.gz
barebox-4a2e799263de5acabc1881e5330cf87b1aee7451.tar.xz
fs: devfs-core: do a case-insensitive compare of partuuids
partuuids are represented as hexadecimal strings, where case doesn't matter. barebox formats them as lower case internally, forcing the partuuid device tree property to be lower case too. Use strcasecmp to be case-insensitive. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs/devfs-core.c')
-rw-r--r--fs/devfs-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/devfs-core.c b/fs/devfs-core.c
index 258bb2dbaa..5341e39e67 100644
--- a/fs/devfs-core.c
+++ b/fs/devfs-core.c
@@ -104,7 +104,7 @@ struct cdev *cdev_by_partuuid(const char *partuuid)
return NULL;
list_for_each_entry(cdev, &cdev_list, list) {
- if (!strcmp(cdev->partuuid, partuuid))
+ if (!strcasecmp(cdev->partuuid, partuuid))
return cdev;
}
return NULL;