summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-06-09 21:14:08 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-06-09 21:14:08 +0000
commit7d44d1ff0ec4077e569c9b8449dd71b354e5ad65 (patch)
tree2122a2ea53e8f8bc448073d69ddac84a21346f2c
parentbda09bcb26151fef5a7d065189399822c4a3cfee (diff)
(diskfs_S_io_get_icky_async_id): Validate CRED.
-rw-r--r--libdiskfs/io-async-icky.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libdiskfs/io-async-icky.c b/libdiskfs/io-async-icky.c
index 93ef8f50..22cb3abb 100644
--- a/libdiskfs/io-async-icky.c
+++ b/libdiskfs/io-async-icky.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1994 Free Software Foundation
+ Copyright (C) 1994, 1995 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -24,6 +24,9 @@ diskfs_S_io_get_icky_async_id (struct protid *cred,
mach_port_t *idport,
mach_msg_type_name_t *idport_type)
{
+ if (!cred)
+ return EOPNOTSUPP;
+
*idport = MACH_PORT_NULL;
*idport_type = MACH_MSG_TYPE_COPY_SEND;
return 0;