diff options
Diffstat (limited to 'block/scsi_ioctl.c')
-rw-r--r-- | block/scsi_ioctl.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index ec4b7f234626..c34272a348fe 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c | |||
@@ -185,6 +185,7 @@ void blk_set_cmd_filter_defaults(struct blk_cmd_filter *filter) | |||
185 | __set_bit(GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL, filter->write_ok); | 185 | __set_bit(GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL, filter->write_ok); |
186 | __set_bit(GPCMD_LOAD_UNLOAD, filter->write_ok); | 186 | __set_bit(GPCMD_LOAD_UNLOAD, filter->write_ok); |
187 | __set_bit(GPCMD_SET_STREAMING, filter->write_ok); | 187 | __set_bit(GPCMD_SET_STREAMING, filter->write_ok); |
188 | __set_bit(GPCMD_SET_READ_AHEAD, filter->write_ok); | ||
188 | } | 189 | } |
189 | EXPORT_SYMBOL_GPL(blk_set_cmd_filter_defaults); | 190 | EXPORT_SYMBOL_GPL(blk_set_cmd_filter_defaults); |
190 | 191 | ||
@@ -313,11 +314,12 @@ static int sg_io(struct file *file, struct request_queue *q, | |||
313 | goto out; | 314 | goto out; |
314 | } | 315 | } |
315 | 316 | ||
316 | ret = blk_rq_map_user_iov(q, rq, iov, hdr->iovec_count, | 317 | ret = blk_rq_map_user_iov(q, rq, NULL, iov, hdr->iovec_count, |
317 | hdr->dxfer_len); | 318 | hdr->dxfer_len, GFP_KERNEL); |
318 | kfree(iov); | 319 | kfree(iov); |
319 | } else if (hdr->dxfer_len) | 320 | } else if (hdr->dxfer_len) |
320 | ret = blk_rq_map_user(q, rq, hdr->dxferp, hdr->dxfer_len); | 321 | ret = blk_rq_map_user(q, rq, NULL, hdr->dxferp, hdr->dxfer_len, |
322 | GFP_KERNEL); | ||
321 | 323 | ||
322 | if (ret) | 324 | if (ret) |
323 | goto out; | 325 | goto out; |