Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Abort only actually initialized slots.



details:   https://anonhg.NetBSD.org/src/rev/cabb9025e257
branches:  trunk
changeset: 333499:cabb9025e257
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Nov 06 01:29:25 2014 +0000

description:
Abort only actually initialized slots.

diffstat:

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

diffs (21 lines):

diff -r 684be3baeaab -r cabb9025e257 sys/dev/pci/viornd.c
--- a/sys/dev/pci/viornd.c      Thu Nov 06 01:26:02 2014 +0000
+++ b/sys/dev/pci/viornd.c      Thu Nov 06 01:29:25 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: viornd.c,v 1.3 2014/11/06 00:42:18 pooka Exp $ */
+/*     $NetBSD: viornd.c,v 1.4 2014/11/06 01:29:25 pooka Exp $ */
 /*     $OpenBSD: viornd.c,v 1.1 2014/01/21 21:14:58 sf Exp $   */
 
 /*
@@ -102,10 +102,10 @@
         bus_dmamap_sync(vsc->sc_dmat, sc->sc_dmamap, 0, VIORND_BUFSIZE,
             BUS_DMASYNC_PREREAD);
        if (virtio_enqueue_prep(vsc, vq, &slot)) {
-               virtio_enqueue_abort(vsc, vq, slot);
                goto out;
        }
         if (virtio_enqueue_reserve(vsc, vq, slot, 1)) {
+               virtio_enqueue_abort(vsc, vq, slot);
                goto out;
        }
         virtio_enqueue(vsc, vq, slot, sc->sc_dmamap, 0);



Home | Main Index | Thread Index | Old Index