From: Greg Kroah-Hartman Date: Wed, 3 Apr 2013 17:05:41 +0000 (-0700) Subject: Revert "xen/blkback: Don't trust the handle from the frontend." X-Git-Tag: v3.4.39~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29fcbcb3e028d63c3bb8a396bd696f82803f8053;p=thirdparty%2Fkernel%2Fstable.git Revert "xen/blkback: Don't trust the handle from the frontend." This reverts commit c93c85196e2c7001daa8a04b83a9d6dd4febfb59 which is commit 01c681d4c70d64cb72142a2823f27c4146a02e63 upstream. It shouldn't have been applied to the 3.4-stable tree, sorry about that. Reported-by: William Dauchy Cc: Jan Beulich Cc: Ian Campbell Cc: Konrad Rzeszutek Wilk Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/block/xen-blkback/blkback.c b/drivers/block/xen-blkback/blkback.c index a8773d155c004..4fd1dea07ba0a 100644 --- a/drivers/block/xen-blkback/blkback.c +++ b/drivers/block/xen-blkback/blkback.c @@ -646,6 +646,7 @@ static int dispatch_rw_block_io(struct xen_blkif *blkif, goto fail_response; } + preq.dev = req->u.rw.handle; preq.sector_number = req->u.rw.sector_number; preq.nr_sects = 0;