From: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] devfs: Fix device name in overlap error message
Date: Mon, 11 Jul 2022 11:09:15 +0200 [thread overview]
Message-ID: <20220711090915.1487105-2-u.kleine-koenig@pengutronix.de> (raw)
In-Reply-To: <20220711090915.1487105-1-u.kleine-koenig@pengutronix.de>
cpart->name contains the partition name, not the device name. Use
cdev->name instead.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@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
next prev parent reply other threads:[~2022-07-11 9:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-11 7:30 [PATCH] devfs: Do not create overlapping partitions Sascha Hauer
2022-07-11 8:31 ` Uwe Kleine-König
2022-07-11 9:09 ` [PATCH 1/2] devfs: take into account for the partitions check that mtd is different Uwe Kleine-König
2022-07-11 9:09 ` Uwe Kleine-König [this message]
2022-07-11 10:31 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220711090915.1487105-2-u.kleine-koenig@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox