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

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sat Mar 22 2003 - 18:58:35 EST


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/



This archive was generated by hypermail 2b29 : Sun Mar 23 2003 - 22:00:42 EST