diff options
| author | Alan Cox <alan@lxorguk.ukuu.org.uk> | 2003-03-22 03:15:38 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-03-22 03:15:38 -0800 |
| commit | 88b6bfe53f48ebc25dbd7a46c320d2fe8a08cac6 (patch) | |
| tree | 9112d843c9a5e8a1f73aacf7c1d66d031c898d10 /drivers/message | |
| parent | 37380aa7a58ad026055c444bfc644a64ea4c70b1 (diff) | |
[PATCH] use right object for i2o_config - kernel not user copy
Diffstat (limited to 'drivers/message')
| -rw-r--r-- | drivers/message/i2o/i2o_config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/message/i2o/i2o_config.c b/drivers/message/i2o/i2o_config.c index 64ffb04cdff6..1aa5dd6c0406 100644 --- a/drivers/message/i2o/i2o_config.c +++ b/drivers/message/i2o/i2o_config.c @@ -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); |
