From: Christoph Hellwig Date: Thu, 26 Mar 2015 11:27:36 +0000 (+0100) Subject: target: add missing __user annotations X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b3c951726edbec6219ba75b34a2151d7c0fa9fc7;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git target: add missing __user annotations Signed-off-by: Christoph Hellwig Signed-off-by: Nicholas Bellinger --- 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) /* 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;