Commit 164ab249 authored by Federico Vaga's avatar Federico Vaga

drv: reset buffer before user

Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent 9ec20cf1
......@@ -93,7 +93,8 @@ static ssize_t svec_dbg_fw_write(struct file *file,
return -EINVAL;
}
err = copy_from_user(buf_l, buf, VBRIDGE_DBG_FW_BUF_LEN);
memset(buf_l, 0, VBRIDGE_DBG_FW_BUF_LEN);
err = copy_from_user(buf_l, buf, count);
if (err)
return -EFAULT;
......
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