diff options
Diffstat (limited to 'devio')
-rw-r--r-- | devio/open.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devio/open.c b/devio/open.c index 64d62bfe..bab4fe99 100644 --- a/devio/open.c +++ b/devio/open.c @@ -49,7 +49,7 @@ open_create(struct dev *dev, struct open **open) err = dev_get_memory_object(dev, &memobj); if (!err) err = - window_create(memobj, 0, 0, dev_is(dev, DEV_READONLY), + window_create(memobj, dev->size, 0, 0, dev_is(dev, DEV_READONLY), &(*open)->window); /* XXX sizes */ if (err) { |