Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Missed a spot.



details:   https://anonhg.NetBSD.org/src/rev/42373bdd2737
branches:  trunk
changeset: 1010192:42373bdd2737
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Sun May 17 15:42:10 2020 +0000

description:
Missed a spot.

diffstat:

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

diffs (29 lines):

diff -r 18bbab47e94c -r 42373bdd2737 sys/dev/pci/hifn7751.c
--- a/sys/dev/pci/hifn7751.c    Sun May 17 15:28:27 2020 +0000
+++ b/sys/dev/pci/hifn7751.c    Sun May 17 15:42:10 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hifn7751.c,v 1.72 2020/05/17 00:54:05 riastradh Exp $  */
+/*     $NetBSD: hifn7751.c,v 1.73 2020/05/17 15:42:10 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.72 2020/05/17 00:54:05 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hifn7751.c,v 1.73 2020/05/17 15:42:10 riastradh Exp $");
 
 #include <sys/param.h>
 #include <sys/cprng.h>
@@ -2409,9 +2409,9 @@
                if (hifn_debug)
                        printf("%s: requeue request\n", device_xname(sc->sc_dv));
 #endif
-               free(cmd, M_DEVBUF);
                sc->sc_needwakeup |= CRYPTO_SYMQ;
                mutex_spin_exit(&sc->sc_mtx);
+               pool_cache_put(sc->sc_cmd_cache, cmd);
                return (err);
        }
 



Home | Main Index | Thread Index | Old Index