From: Richard Mortimer Date: Thu, 02 Sep 2004 10:58:12 +0000 Subject: Re: [PATCH] Re: lvm problems on sparc64 - Trying to vfree() Message-Id: <1094122692.2117.1704.camel@duncow> List-Id: References: <1093911340.2116.55.camel@duncow> <20040830174015.10edb69b.davem@davemloft.net> <1093989609.2124.139.camel@duncow> <20040901183737.7bf17a39.davem@davemloft.net> In-Reply-To: <20040901183737.7bf17a39.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: "David S. Miller" Cc: sparclinux@vger.kernel.org, debian-sparc@lists.debian.org, linux-lvm@sistina.com, richm@oldelvet.org.uk, marcelo.tosatti@cyclades.com On Thu, 2004-09-02 at 02:37, David S. Miller wrote: > On Tue, 31 Aug 2004 23:00:10 +0100 > Richard Mortimer wrote: > > > How do they look > > Please resend your patch without all the line breaks > created by your email client. It looks fine otherwise > :) Bah. Clients are just getting too clever these days. Hopefully this should be ok. Richard --- arch/sparc64/kernel/ioctl32.c.orig 2004-08-29 00:12:09.000000000 +0100 +++ arch/sparc64/kernel/ioctl32.c 2004-08-31 22:06:23.000000000 +0100 @@ -2949,7 +2949,7 @@ case LV_REMOVE: case LV_RENAME: case LV_STATUS_BYNAME: - err = copy_from_user(&u.pv_status, arg, sizeof(u.pv_status.pv_name)); + err = copy_from_user(&u.lv_req, arg, sizeof(u.lv_req.lv_name)); if (err) return -EFAULT; if (cmd != LV_REMOVE) { @@ -2992,7 +2992,7 @@ case PV_CHANGE: case PV_STATUS: - err = copy_from_user(&u.pv_status, arg, sizeof(u.lv_req.lv_name)); + err = copy_from_user(&u.pv_status, arg, sizeof(u.pv_status.pv_name)); if (err) return -EFAULT; err = __get_user(ptr, &((pv_status_req32_t *)arg)->pv); @@ -3064,7 +3064,7 @@ if (u.lv_bydev.lv) { if (!err) err = copy_lv_t(ptr, u.lv_bydev.lv); - put_lv_t(u.lv_byindex.lv); + put_lv_t(u.lv_bydev.lv); } break; -- richm@oldelvet.org.uk