From 298727bc7931fe878fd72a1fa6f35c18bd7c593c Mon Sep 17 00:00:00 2001 From: Uwe Kleine-König Date: Mon, 11 Jul 2022 11:09:15 +0200 Subject: devfs: Fix device name in overlap error message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit cpart->name contains the partition name, not the device name. Use cdev->name instead. Signed-off-by: Uwe Kleine-König Link: https://lore.barebox.org/20220711090915.1487105-2-u.kleine-koenig@pengutronix.de Signed-off-by: Sascha Hauer --- 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 dca5e10191..1d8b2664f2 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; -- cgit v1.2.3