summaryrefslogtreecommitdiff
path: root/devio
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-01-16 21:42:13 +0000
committerMiles Bader <miles@gnu.org>1996-01-16 21:42:13 +0000
commiteeee6d3ad0590bccad3492dc38f7814409cd52f0 (patch)
treed3361f89e889c304ba41062304fe53e09f2238f9 /devio
parentd7a81de8c8750f8a70acf751ed5ad789a6ec6484 (diff)
(trivfs_modify_stat): The peropen hook holds a struct open, not a struct dev.
Diffstat (limited to 'devio')
-rw-r--r--devio/devio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/devio/devio.c b/devio/devio.c
index 11b41f70..d0f2b9fb 100644
--- a/devio/devio.c
+++ b/devio/devio.c
@@ -233,11 +233,12 @@ int trivfs_allow_open = O_READ | O_WRITE;
void
trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st)
{
- struct dev *dev = cred->po->hook;
+ struct open *open = cred->po->hook;
- if (dev)
+ if (open)
/* An open device. */
{
+ struct dev *dev = open->dev;
vm_size_t size = dev->size;
if (dev->block_size > 1)