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

[Xen-changelog] [linux-2.6.18-xen] blkback: preq.dev is used without being initialized


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-linux-2.6.18-xen <patchbot@xxxxxxx>
  • Date: Wed, 27 Feb 2013 10:33:02 +0000
  • Delivery-date: Wed, 27 Feb 2013 10:33:32 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Chen Gang <gang.chen@xxxxxxxxxxx>
# Date 1361960463 -3600
# Node ID 28e95bbec82172230b27c9cdb8bfa8aa0d342bbc
# Parent  ff0befcaac096534fba1c17410367740ed4b1d5f
blkback: preq.dev is used without being initialized

If the call to xen_vbd_translate failed, then preq.dev will be not
initialized. So use blkif->vbd.pdevice instead.

Signed-off-by: Chen Gang <gang.chen@xxxxxxxxxxx>
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
Committed-by: Jan Beulich <jbeulich@xxxxxxxx>
---


diff -r ff0befcaac09 -r 28e95bbec821 drivers/xen/blkback/blkback.c
--- a/drivers/xen/blkback/blkback.c     Mon Feb 18 09:41:34 2013 +0100
+++ b/drivers/xen/blkback/blkback.c     Wed Feb 27 11:21:03 2013 +0100
@@ -501,7 +501,8 @@ static void dispatch_rw_block_io(blkif_t
                DPRINTK("access denied: %s of [%llu,%llu] on dev=%04x\n", 
                        operation == READ ? "read" : "write",
                        preq.sector_number,
-                       preq.sector_number + preq.nr_sects, preq.dev);
+                       preq.sector_number + preq.nr_sects,
+                       blkif->vbd.pdevice);
                goto fail_flush;
        }
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.