target: add missing __user annotations
authorChristoph Hellwig <hch@lst.de>
Thu, 26 Mar 2015 11:27:36 +0000 (12:27 +0100)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 26 Mar 2015 21:53:17 +0000 (14:53 -0700)
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_user.c

index 1a1bcf71ec9dbf3ed5ae05cbfadcf71a29a33f87..1fbf304a9491544d389f7a545b269903f76ca7a7 100644 (file)
@@ -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;