diff options
author | Christoph Hellwig <hch@lst.de> | 2015-03-26 11:27:36 (GMT) |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-03-26 21:53:17 (GMT) |
commit | b3c951726edbec6219ba75b34a2151d7c0fa9fc7 (patch) | |
tree | a608017495a741a03c3289ad8561b038f7748bc2 | |
parent | 3abff1e5b0ab19900364cf1faddb92d64f9ee2cb (diff) | |
download | linux-b3c951726edbec6219ba75b34a2151d7c0fa9fc7.tar.xz |
target: add missing __user annotations
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
-rw-r--r-- | drivers/target/target_core_user.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c index 1a1bcf7..1fbf304 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) /* Even iov_base is relative to mb_addr */ iov->iov_len = copy_bytes; - iov->iov_base = (void *) udev->data_off + udev->data_head; + iov->iov_base = (void __user *) udev->data_off + + udev->data_head; iov_cnt++; iov++; @@ -388,7 +389,8 @@ static int tcmu_queue_cmd_ring(struct tcmu_cmd *tcmu_cmd) copy_bytes = sg->length - copy_bytes; iov->iov_len = copy_bytes; - iov->iov_base = (void *) udev->data_off + udev->data_head; + iov->iov_base = (void __user *) udev->data_off + + udev->data_head; if (se_cmd->data_direction == DMA_TO_DEVICE) { to = (void *) mb + udev->data_off + udev->data_head; |