mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-20 04:01:26 +00:00
Change the data type of iscsi_conn.read_iov into struct kvec * and switch from iscsi_conn.read_size to iscsi_conn.read_msg.count for kernel version 3.19 and later. Cast the return type of get_zeroed_page() to void * since with this patch the read_iov data type depends on the kernel version. Remove the (void __force __user *) casts when assigning to iov_base since for a kvec iov_base is a kernel pointer instead of a user space pointer. Switch to iov_iter_kvec() to initialize conn->read_msg.msg_iter. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
46 KiB
46 KiB