Commit d7ffed83 authored by Federico Vaga's avatar Federico Vaga

sw:drv: fix copy_to_user arguments order

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 60696cb2
......@@ -241,7 +241,7 @@ static ssize_t spec_fpga_dbg_dma_read(struct file *file, char __user *buf,
count, *ppos);
if (err)
goto err_trans;
err = copy_to_user(dbgdma->data, buf, count);
err = copy_to_user(buf, dbgdma->data, count);
if (err)
goto err_cpy;
......
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