summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr/src/uts/common/io/tem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/io/tem.c b/usr/src/uts/common/io/tem.c
index eeda8f375f..b00908c683 100644
--- a/usr/src/uts/common/io/tem.c
+++ b/usr/src/uts/common/io/tem.c
@@ -376,7 +376,7 @@ tems_failed(cred_t *credp, boolean_t finish_ioctl)
(void) ldi_ioctl(tems.ts_hdl, VIS_DEVFINI, 0,
FWRITE|FKIOCTL, credp, &lyr_rval);
- (void) ldi_close(tems.ts_hdl, NULL, credp);
+ (void) ldi_close(tems.ts_hdl, 0, credp);
tems.ts_hdl = NULL;
return (ENXIO);
}