diff options
author | phk <phk@FreeBSD.org> | 1999-12-19 12:36:41 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1999-12-19 12:36:41 +0000 |
commit | 1e02d32e93a309304d43b88ee376fb779a01074b (patch) | |
tree | f672d4b757b393c680a23da9a974e440c1492931 /sys/kern/subr_disk.c | |
parent | 48b97c099714f0a4bc351b6a73de9b06c23c6628 (diff) | |
download | FreeBSD-src-1e02d32e93a309304d43b88ee376fb779a01074b.zip FreeBSD-src-1e02d32e93a309304d43b88ee376fb779a01074b.tar.gz |
Don't ignore return value from tsleep().
Spotted by: charnier
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index a28079c..aa4d7c9 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -117,7 +117,9 @@ diskopen(dev_t dev, int oflags, int devtype, struct proc *p) while (dp->d_flags & DISKFLAG_LOCK) { dp->d_flags |= DISKFLAG_WANTED; - tsleep(dp, PRIBIO | PCATCH, "diskopen", hz); + error = tsleep(dp, PRIBIO | PCATCH, "diskopen", hz); + if (error) + return (error); } dp->d_flags |= DISKFLAG_LOCK; |