lkml.org 
[lkml]   [2000]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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/

\
 
 \ /
  Last update: 2005-03-22 13:58    [W:0.031 / U:0.040 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site