Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/xen/xen Uninitialized variable. Found by Brainy.



details:   https://anonhg.NetBSD.org/src/rev/b3c8cc1eca93
branches:  trunk
changeset: 341192:b3c8cc1eca93
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sun Oct 25 07:51:16 2015 +0000

description:
Uninitialized variable. Found by Brainy.

ok pgoyette@

diffstat:

 sys/arch/xen/xen/xbd_xenbus.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 666dd92ee8d3 -r b3c8cc1eca93 sys/arch/xen/xen/xbd_xenbus.c
--- a/sys/arch/xen/xen/xbd_xenbus.c     Sun Oct 25 05:24:44 2015 +0000
+++ b/sys/arch/xen/xen/xbd_xenbus.c     Sun Oct 25 07:51:16 2015 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: xbd_xenbus.c,v 1.74 2015/08/28 17:41:49 mlelstv Exp $      */
+/*      $NetBSD: xbd_xenbus.c,v 1.75 2015/10/25 07:51:16 maxv Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -50,7 +50,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xbd_xenbus.c,v 1.74 2015/08/28 17:41:49 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xbd_xenbus.c,v 1.75 2015/10/25 07:51:16 maxv Exp $");
 
 #include "opt_xen.h"
 
@@ -652,9 +652,9 @@
        for (i = sc->sc_ring.rsp_cons; i != resp_prod; i++) {
                blkif_response_t *rep = RING_GET_RESPONSE(&sc->sc_ring, i);
                struct xbd_req *xbdreq = &sc->sc_reqs[rep->id];
+               bp = xbdreq->req_bp;
                DPRINTF(("xbd_handler(%p): b_bcount = %ld\n",
                    xbdreq->req_bp, (long)bp->b_bcount));
-               bp = xbdreq->req_bp;
                if (rep->operation == BLKIF_OP_FLUSH_DISKCACHE) {
                        xbdreq->req_sync.s_error = rep->status;
                        xbdreq->req_sync.s_done = 1;



Home | Main Index | Thread Index | Old Index