aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-03-26 07:27:36 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2015-03-26 17:53:17 -0400
commitb3c951726edbec6219ba75b34a2151d7c0fa9fc7 (patch)
treea608017495a741a03c3289ad8561b038f7748bc2 /drivers/target
parent3abff1e5b0ab19900364cf1faddb92d64f9ee2cb (diff)
target: add missing __user annotations
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_user.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index 1a1bcf71ec9d..1fbf304a9491 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -376,7 +376,8 @@ static int tcmu_queue_cmd_ring(struct tcmu_cmd *tcmu_cmd)
376 376
377 /* Even iov_base is relative to mb_addr */ 377 /* Even iov_base is relative to mb_addr */
378 iov->iov_len = copy_bytes; 378 iov->iov_len = copy_bytes;
379 iov->iov_base = (void *) udev->data_off + udev->data_head; 379 iov->iov_base = (void __user *) udev->data_off +
380 udev->data_head;
380 iov_cnt++; 381 iov_cnt++;
381 iov++; 382 iov++;
382 383
@@ -388,7 +389,8 @@ static int tcmu_queue_cmd_ring(struct tcmu_cmd *tcmu_cmd)
388 copy_bytes = sg->length - copy_bytes; 389 copy_bytes = sg->length - copy_bytes;
389 390
390 iov->iov_len = copy_bytes; 391 iov->iov_len = copy_bytes;
391 iov->iov_base = (void *) udev->data_off + udev->data_head; 392 iov->iov_base = (void __user *) udev->data_off +
393 udev->data_head;
392 394
393 if (se_cmd->data_direction == DMA_TO_DEVICE) { 395 if (se_cmd->data_direction == DMA_TO_DEVICE) {
394 to = (void *) mb + udev->data_off + udev->data_head; 396 to = (void *) mb + udev->data_off + udev->data_head;