summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-13 16:16:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-05-13 16:16:23 +0000
commit7e6847e7aec5bddec977f170bc44a84761c575db (patch)
treeb072c952618630de5f2f2ecb4a652d3272be7650
parentb1bcf9ef3aac0903b35c0bea43c06588bf72650f (diff)
bail out better from tsleep failure
-rw-r--r--sys/crypto/cryptodev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/crypto/cryptodev.c b/sys/crypto/cryptodev.c
index 96c80c5eae4..e186b6db72d 100644
--- a/sys/crypto/cryptodev.c
+++ b/sys/crypto/cryptodev.c
@@ -308,7 +308,7 @@ crypto_op(struct csession *cse, struct crypt_op *cop)
error = tsleep(cse, PSOCK, "crydev", 0);
if (error) {
/// XXX can this happen? if so, how do we recover?
- return (error);
+ goto bail;
}
if (cse->error)