diff options
author | James Bottomley <James.Bottomley@SteelEye.com> | 2005-06-20 08:07:17 -0400 |
---|---|---|
committer | Jens Axboe <axboe@suse.de> | 2005-06-20 08:07:17 -0400 |
commit | e1f546e185e9d8cb9303d74d1cd5bc704f265384 (patch) | |
tree | bca12f46d6ea3039896406081826d7db37b0384e /drivers/block/scsi_ioctl.c | |
parent | f1970baf6d74e03bd32072ab453f2fc01bc1b8d3 (diff) |
[PATCH] The blk_rq_map_user() change missed an update in scsi_ioctl.c
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'drivers/block/scsi_ioctl.c')
-rw-r--r-- | drivers/block/scsi_ioctl.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/block/scsi_ioctl.c b/drivers/block/scsi_ioctl.c index 09a7e73a0812..b35cb75c7528 100644 --- a/drivers/block/scsi_ioctl.c +++ b/drivers/block/scsi_ioctl.c | |||
@@ -216,7 +216,7 @@ static int sg_io(struct file *file, request_queue_t *q, | |||
216 | struct gendisk *bd_disk, struct sg_io_hdr *hdr) | 216 | struct gendisk *bd_disk, struct sg_io_hdr *hdr) |
217 | { | 217 | { |
218 | unsigned long start_time; | 218 | unsigned long start_time; |
219 | int reading, writing, ret; | 219 | int reading, writing, ret = 0; |
220 | struct request *rq; | 220 | struct request *rq; |
221 | struct bio *bio; | 221 | struct bio *bio; |
222 | char sense[SCSI_SENSE_BUFFERSIZE]; | 222 | char sense[SCSI_SENSE_BUFFERSIZE]; |
@@ -249,7 +249,6 @@ static int sg_io(struct file *file, request_queue_t *q, | |||
249 | reading = 1; | 249 | reading = 1; |
250 | break; | 250 | break; |
251 | } | 251 | } |
252 | } | ||
253 | 252 | ||
254 | rq = blk_get_request(q, writing ? WRITE : READ, GFP_KERNEL); | 253 | rq = blk_get_request(q, writing ? WRITE : READ, GFP_KERNEL); |
255 | if (!rq) | 254 | if (!rq) |
@@ -335,7 +334,7 @@ static int sg_io(struct file *file, request_queue_t *q, | |||
335 | hdr->sb_len_wr = len; | 334 | hdr->sb_len_wr = len; |
336 | } | 335 | } |
337 | 336 | ||
338 | if (blk_rq_unmap_user(rq, bio, hdr->dxfer_len)) | 337 | if (blk_rq_unmap_user(bio, hdr->dxfer_len)) |
339 | ret = -EFAULT; | 338 | ret = -EFAULT; |
340 | 339 | ||
341 | /* may not have succeeded, but output values written to control | 340 | /* may not have succeeded, but output values written to control |