Messages in this thread Patch in this message | | | Date | Tue, 8 Aug 2000 16:45:01 -0700 | From | Anton Blanchard <> | Subject | [PATCH] raid forgets about copy_from_user() |
| |
Hi,
I found this when fixing raid on sparc64.
Anton
--- linux/drivers/block/md.c Thu Aug 3 21:17:08 2000 +++ linux_work/drivers/block/md.c Tue Aug 8 01:11:06 2000 @@ -2741,7 +2741,7 @@ if (md_copy_from_user(&info, (void*)arg, sizeof(info))) err = -EFAULT; else - err = add_new_disk(mddev, (void *)arg); + err = add_new_disk(mddev, &info); goto done_unlock; } case HOT_REMOVE_DISK: - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |