Signed-off-by: Peter Mamonov <pmamo...@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


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

Reply via email to