mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 19:29:37 +00:00
target: add missing __user annotations
Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
This commit is contained in:
parent
3abff1e5b0
commit
b3c951726e
1 changed files with 4 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue