Message ID | 159643102106.4062302.12229802117645312104.stgit@dwillia2-desk3.amr.corp.intel.com |
---|---|
State | Accepted |
Commit | c77f520db8ebed1ffdeb8a545526dc093365d972 |
Headers | show |
Series | device-dax: Support sub-dividing soft-reserved ranges | expand |
diff --git a/drivers/base/core.c b/drivers/base/core.c index 2169c5132558..231189dd6599 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c @@ -3328,7 +3328,7 @@ struct device *device_find_child_by_name(struct device *parent, klist_iter_init(&parent->p->klist_children, &i); while ((child = next_device(&i))) - if (!strcmp(dev_name(child), name) && get_device(child)) + if (sysfs_streq(dev_name(child), name) && get_device(child)) break; klist_iter_exit(&i); return child;