Commit 3ccd8975 authored by A. Hahn's avatar A. Hahn

Merge remote-tracking branch 'origin/rubi-test'

parents cd0bd184 0434a533
......@@ -609,7 +609,31 @@ static int char_master_fasync(int fd, struct file *file, int on)
return fasync_helper(fd, file, on, &context->fasync);
}
#if LINUX_VERSION_CODE > KERNEL_VERSION(4,1,0)
#if LINUX_VERSION_CODE > KERNEL_VERSION(5,19,0)
/*
* Commit v5.19-10288-g3e20a751aff0, implementing read(2), removed
* initialization of iter->iov (and thus iter->nr_segs). Put it back.
* This is a hack, as I imagine there was a reason for the change (ARub).
*/
static ssize_t char_master_aio_read_iter(struct kiocb *iocb,
struct iov_iter *iter)
{
/* From new_sync_read before v5.19-10288-g3e20a751aff0 */
struct iovec iov = { .iov_base = iter->ubuf, .iov_len = iter->count };
return char_master_aio_read(iocb, &iov, 1, 0);
}
static ssize_t char_master_aio_write_iter(struct kiocb *iocb,
struct iov_iter *iter)
{
/* From new_sync_write before v5.19-10288-g3e20a751aff0 */
struct iovec iov = { .iov_base = iter->ubuf, .iov_len = iter->count };
return char_master_aio_write(iocb, &iov, 1, 0);
}
#elif LINUX_VERSION_CODE > KERNEL_VERSION(4,1,0)
static ssize_t char_master_aio_read_iter(struct kiocb *iocb, struct iov_iter *iter)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment