Module Name:    src
Committed By:   riastradh
Date:           Sun May 22 11:34:57 UTC 2022

Modified Files:
        src/sys/dev/pci: hifn7751.c

Log Message:
hifn(4): Make ERESTART return more obvious.


To generate a diff of this commit:
cvs rdiff -u -r1.77 -r1.78 src/sys/dev/pci/hifn7751.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/pci/hifn7751.c
diff -u src/sys/dev/pci/hifn7751.c:1.77 src/sys/dev/pci/hifn7751.c:1.78
--- src/sys/dev/pci/hifn7751.c:1.77	Sun May 22 11:34:48 2022
+++ src/sys/dev/pci/hifn7751.c	Sun May 22 11:34:57 2022
@@ -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 *
 		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

Reply via email to