[PATCH 2/2] devfs: Fix device name in overlap error message
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Mon Jul 11 02:09:15 PDT 2022
cpart->name contains the partition name, not the device name. Use
cdev->name instead.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
---
fs/devfs-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/devfs-core.c b/fs/devfs-core.c
index dca5e10191d4..1d8b2664f216 100644
--- a/fs/devfs-core.c
+++ b/fs/devfs-core.c
@@ -418,7 +418,7 @@ static int check_overlap(struct cdev *cdev, const char *name, loff_t offset, lof
conflict:
pr_err("New partition %s (0x%08llx-0x%08llx) on %s "
"overlaps with partition %s (0x%08llx-0x%08llx), not creating it\n",
- name, offset, offset + size - 1, cpart->name,
+ name, offset, offset + size - 1, cdev->name,
cpart->name, cpart_offset, cpart_offset + cpart->size - 1);
return -EINVAL;
--
2.36.1
More information about the barebox
mailing list