summaryrefslogtreecommitdiff
path: root/i386/i386at
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2001-11-23 22:25:27 +0000
committerRoland McGrath <roland@gnu.org>2001-11-23 22:25:27 +0000
commit2fdedeeb22f12b1e1c35014cd2d74f40a9e826e9 (patch)
treefeab5f6b9d93a5d2d2f6bf6e50500679afb241e8 /i386/i386at
parente7b3a47a3b97590dcc3ac433a2694fa786d73af2 (diff)
2001-11-23 Roland McGrath <roland@frob.com>
* i386/i386at/i386at_ds_routines.c (device_deallocate): Do nothing if argument is DEVICE_NULL.
Diffstat (limited to 'i386/i386at')
-rw-r--r--i386/i386at/i386at_ds_routines.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/i386/i386at/i386at_ds_routines.c b/i386/i386at/i386at_ds_routines.c
index be1f58d..2a52a67 100644
--- a/i386/i386at/i386at_ds_routines.c
+++ b/i386/i386at/i386at_ds_routines.c
@@ -1,4 +1,4 @@
-/*
+/*
* Mach device server routines (i386at version).
*
* Copyright (c) 1996 The University of Utah and
@@ -273,6 +273,8 @@ device_reference (device_t dev)
void
device_deallocate (device_t dev)
{
+ if (dev == DEVICE_NULL)
+ return;
if (dev->emul_ops->dealloc)
(*dev->emul_ops->dealloc) (dev->emul_data);
}