[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[linux-lvm] [compile fix] linux-2.3.99-pre[23]*
- From: iafilius xs4all nl
- To: linux-lvm msede com
- Subject: [linux-lvm] [compile fix] linux-2.3.99-pre[23]*
- Date: Tue, 21 Mar 2000 14:05:08 +0100 (CET)
Hello,
I noticed a change in patch-2.3.99-pre2 which prevents compiling.
./drivers/block/lvm.c:
@@ -931,8 +931,8 @@
printk(KERN_DEBUG
"%s -- lvm_blk_ioctl -- BLKRAGET\n", lvm_name);
#endif
- copy_to_user((long *) arg, &lv_ptr->lv_read_ahead,
- sizeof(lv_ptr->lv_read_ahead));
+ if (put_user(lv->lv_read_ahead, (long *)arg))
+ return -EFAULT;
break;
I changed
+ if (put_user(lv->lv_read_ahead, (long *)arg))
to
+ if (put_user(lv_ptr->lv_read_ahead, (long *)arg))
And now i've booted linux-2.3.99-pre3-3 + patch-2.3.99-pre1-LVM-0.8final
+ lv/lv_ptr fix, and seems to work properly (almost anything on LV's) :)
Greatings,
Arjan Filius
mailto:iafilius xs4all nl
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]