summaryrefslogtreecommitdiff
path: root/devio
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-04-10 14:26:36 +0000
committerMiles Bader <miles@gnu.org>1995-04-10 14:26:36 +0000
commitadbfecb7eb8ffaeed92f26cfabca301fae5391eb (patch)
treecefadf22c6fdd28520c16d6cb57607c2cdb680d1 /devio
parent0924d80bcb4deb56cb07b85fdc52f1c7cbd8270c (diff)
(open_create): Supply our device's size when creating a window.
Diffstat (limited to 'devio')
-rw-r--r--devio/open.c2
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)
{