Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211376
b: refs/heads/master
c: e4c4776
h: refs/heads/master
v: v3
  • Loading branch information
Mike Snitzer authored and Linus Torvalds committed Oct 9, 2010
1 parent dee4210 commit fecc88e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6b0cd00bc396daf5c2dcf17a8d82055335341f46
refs/heads/master: e4c4776dea9fd0295ebb3b215599d52938d6d7a3
6 changes: 5 additions & 1 deletion trunk/drivers/block/virtio_blk.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ static int virtblk_get_id(struct gendisk *disk, char *id_str)
struct virtio_blk *vblk = disk->private_data;
struct request *req;
struct bio *bio;
int err;

bio = bio_map_kern(vblk->disk->queue, id_str, VIRTIO_BLK_ID_BYTES,
GFP_KERNEL);
Expand All @@ -215,7 +216,10 @@ static int virtblk_get_id(struct gendisk *disk, char *id_str)
}

req->cmd_type = REQ_TYPE_SPECIAL;
return blk_execute_rq(vblk->disk->queue, vblk->disk, req, false);
err = blk_execute_rq(vblk->disk->queue, vblk->disk, req, false);
blk_put_request(req);

return err;
}

static int virtblk_locked_ioctl(struct block_device *bdev, fmode_t mode,
Expand Down

0 comments on commit fecc88e

Please sign in to comment.