From adbfecb7eb8ffaeed92f26cfabca301fae5391eb Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Mon, 10 Apr 1995 14:26:36 +0000 Subject: (open_create): Supply our device's size when creating a window. --- devio/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3