Commit bf5a8961 authored by Gwenhael Goavec-Merou's avatar Gwenhael Goavec-Merou Committed by Vaibhav Gupta

drivers/zio/chardev: fix copy_to_user call for kernel >= 4.18

parent 72d18a38
......@@ -428,6 +428,10 @@ static ssize_t zio_generic_read(struct file *f, char __user *ubuf,
struct zio_channel *chan = priv->chan;
struct zio_bi *bi = chan->bi;
struct zio_block *block;
#if KERNEL_VERSION(4, 18, 0) <= LINUX_VERSION_CODE
struct zio_control zio_ctrl;
#endif
int (*can_read)(struct zio_f_priv *);
int fault;
......
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