[RFC PATCH 12/15] FIXME: commands/mem: fix /dev/mem size
Peter Mamonov
pmamonov at gmail.com
Thu May 17 06:58:55 PDT 2018
Signed-off-by: Peter Mamonov <pmamonov at gmail.com>
---
commands/mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/commands/mem.c b/commands/mem.c
index eb91ade05..80cf5c79d 100644
--- a/commands/mem.c
+++ b/commands/mem.c
@@ -96,7 +96,7 @@ static int mem_probe(struct device_d *dev)
dev->priv = cdev;
cdev->name = (char*)dev->resource[0].name;
- cdev->size = (unsigned long)resource_size(&dev->resource[0]);
+ cdev->size = (loff_t)-1;
cdev->ops = &memops;
cdev->dev = dev;
--
2.17.0
More information about the barebox
mailing list