PATCH: use right object for i2o_config - kernel not user copy

Alan Cox (alan@lxorguk.ukuu.org.uk)
Sat, 22 Mar 2003 23:58:35 GMT


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.65-bk3/drivers/message/i2o/i2o_config.c linux-2.5.65-ac3/drivers/message/i2o/i2o_config.c
--- linux-2.5.65-bk3/drivers/message/i2o/i2o_config.c 2003-03-22 19:33:59.000000000 +0000
+++ linux-2.5.65-ac3/drivers/message/i2o/i2o_config.c 2003-03-22 20:41:45.000000000 +0000
@@ -437,7 +437,7 @@
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);
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/