From: Greg Kroah-Hartman Date: Tue, 12 Mar 2013 22:08:26 +0000 (-0700) Subject: Revert "xen/blkback: Don't trust the handle from the frontend." X-Git-Tag: v3.8.3~4 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=32f4d10ed8fd7ef4cebbf02c5326e8bb6aeca9b1;p=karo-tx-linux.git Revert "xen/blkback: Don't trust the handle from the frontend." This reverts commit 01c681d4c70d64cb72142a2823f27c4146a02e63 upstream (ef56ca64ea733c3b88f0bb74b04da128b1dc35d8 in this tree), as it wasn't supposed to have been applied to the stable tree. 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 de1f319f7bd7..e34a7b450e3d 100644 --- a/drivers/block/xen-blkback/blkback.c +++ b/drivers/block/xen-blkback/blkback.c @@ -881,6 +881,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;