Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci hifn(4): Make ERESTART return more obvious.



details:   https://anonhg.NetBSD.org/src/rev/92d1032c14f8
branches:  trunk
changeset: 366321:92d1032c14f8
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun May 22 11:34:57 2022 +0000

description:
hifn(4): Make ERESTART return more obvious.

diffstat:

 sys/dev/pci/hifn7751.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 3b331c32f64b -r 92d1032c14f8 sys/dev/pci/hifn7751.c
--- a/sys/dev/pci/hifn7751.c    Sun May 22 11:34:48 2022 +0000
+++ b/sys/dev/pci/hifn7751.c    Sun May 22 11:34:57 2022 +0000
@@ -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 @@
                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 @@
                pool_cache_put(sc->sc_cmd_cache, cmd);
        }
        crypto_done(crp);
-       return (0);
+       return 0;
 }
 
 static void



Home | Main Index | Thread Index | Old Index