summaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl/pinctrl-imx27.c
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2014-02-23 03:34:08 +0100
committerNicholas Bellinger <nab@linux-iscsi.org>2014-06-02 21:41:54 +0200
commit5a01d08217e39f3d36d3ca160361c7b019ff1598 (patch)
tree15d4b1d9b66bd8e6dce24569c93f718cac1d8bab /drivers/pinctrl/pinctrl-imx27.c
parentvirtio-scsi.h: Add virtio_scsi_cmd_req_pi + VIRTIO_SCSI_F_T10_PI bits (diff)
downloadlinux-5a01d08217e39f3d36d3ca160361c7b019ff1598.tar.xz
linux-5a01d08217e39f3d36d3ca160361c7b019ff1598.zip
vhost/scsi: Move sanity check into vhost_scsi_map_iov_to_sgl
Move the overflow check for sgl_count > TCM_VHOST_PREALLOC_SGLS into vhost_scsi_map_iov_to_sgl() so that it's based on the total number of SGLs for all IOVs, instead of single IOVs. Also, rename TCM_VHOST_PREALLOC_PAGES -> TCM_VHOST_PREALLOC_UPAGES to better describe pointers to user-space pages. Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Paolo Bonzini <pbonzini@redhat.com> Cc: Martin K. Petersen <martin.petersen@oracle.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.de> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/pinctrl/pinctrl-imx27.c')
0 files changed, 0 insertions, 0 deletions