[PATCH 2/2] devfs: Fix device name in overlap error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



cpart->name contains the partition name, not the device name. Use
cdev->name instead.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@xxxxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux