From 7e6847e7aec5bddec977f170bc44a84761c575db Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 13 May 2001 16:16:23 +0000 Subject: bail out better from tsleep failure --- sys/crypto/cryptodev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3