diff options
author | Marco Peereboom <marco@cvs.openbsd.org> | 2009-10-28 15:22:24 +0000 |
---|---|---|
committer | Marco Peereboom <marco@cvs.openbsd.org> | 2009-10-28 15:22:24 +0000 |
commit | 9655a2c6583c8e6f66a020fa1c6ccf7d900b86a9 (patch) | |
tree | db7504390c59c48915c6622f265c43eeb769e162 /sys | |
parent | a8f82bd03d770993bc871cb694bcbd89a872f1aa (diff) |
Remove FWRITE from closes that aren't opened with FWRITE.
spotted and ok jsing
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/softraid.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index ed343e1bf5f..75b2a73d1dd 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.175 2009/10/13 19:33:16 pirofti Exp $ */ +/* $OpenBSD: softraid.c,v 1.176 2009/10/28 15:22:23 marco Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -886,13 +886,13 @@ sr_meta_native_bootprobe(struct sr_softc *sc, struct device *dv, if (error) { DNPRINTF(SR_D_META, "%s: sr_meta_native_bootprobe ioctl " "failed\n", DEVNAME(sc)); - VOP_CLOSE(vn, FREAD | FWRITE, NOCRED, 0); + VOP_CLOSE(vn, FREAD, NOCRED, 0); vput(vn); goto done; } /* we are done, close device */ - error = VOP_CLOSE(vn, FREAD | FWRITE, NOCRED, 0); + error = VOP_CLOSE(vn, FREAD, NOCRED, 0); if (error) { DNPRINTF(SR_D_META, "%s: sr_meta_native_bootprobe close " "failed\n", DEVNAME(sc)); |