Commit 88b6bfe5 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] use right object for i2o_config - kernel not user copy

parent 37380aa7
......@@ -437,7 +437,7 @@ static int ioctl_parms(unsigned long arg, unsigned int type)
put_user(len, kcmd.reslen);
if(len > reslen)
ret = -ENOBUFS;
else if(copy_to_user(cmd->resbuf, res, len))
else if(copy_to_user(kcmd.resbuf, res, len))
ret = -EFAULT;
kfree(res);
......
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