summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2022-05-22 11:34:57 +0000
committerriastradh <riastradh@NetBSD.org>2022-05-22 11:34:57 +0000
commitb84ece8249b7a240764c4f7db13bc8566d6bbb4e (patch)
treeb59217b38369a66130603f7e9123fe5b5936a175 /sys/dev
parent44b9f046b654786aa8ba08564652f7250865cdfb (diff)
hifn(4): Make ERESTART return more obvious.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/hifn7751.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/hifn7751.c b/sys/dev/pci/hifn7751.c
index 83661fe7dd4..883d46b25ea 100644
--- a/sys/dev/pci/hifn7751.c
+++ b/sys/dev/pci/hifn7751.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hifn7751.c,v 1.77 2022/05/22 11:34:48 riastradh Exp $ */
+/* $NetBSD: hifn7751.c,v 1.78 2022/05/22 11:34:57 riastradh Exp $ */
/* $OpenBSD: hifn7751.c,v 1.179 2020/01/11 21:34:03 cheloha Exp $ */
/*
@@ -47,7 +47,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.77 2022/05/22 11:34:48 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.78 2022/05/22 11:34:57 riastradh Exp $");
#include <sys/param.h>
#include <sys/cprng.h>
@@ -2408,7 +2408,7 @@ hifn_process(void *arg, struct cryptop *crp, int hint)
sc->sc_needwakeup |= CRYPTO_SYMQ;
mutex_spin_exit(&sc->sc_mtx);
pool_cache_put(sc->sc_cmd_cache, cmd);
- return (err);
+ return ERESTART;
}
errout:
@@ -2426,7 +2426,7 @@ errout:
pool_cache_put(sc->sc_cmd_cache, cmd);
}
crypto_done(crp);
- return (0);
+ return 0;
}
static void