Clear the "device open" flag in daopen() before returning a error,
so the device won't stay marked as open whereas it isn't. Approved by: re, njl MFC after: 1 week
This commit is contained in:
parent
340a8a91c3
commit
3aa2a1d0e4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107790
@ -612,6 +612,7 @@ daopen(dev_t dev, int flags __unused, int fmt __unused, struct thread *td __unus
|
||||
if ((softc->flags & DA_FLAG_PACK_REMOVABLE) != 0)
|
||||
daprevent(periph, PR_PREVENT);
|
||||
} else {
|
||||
softc->flags &= ~DA_FLAG_OPEN;
|
||||
cam_periph_release(periph);
|
||||
}
|
||||
cam_periph_unlock(periph);
|
||||
|
Loading…
Reference in New Issue
Block a user