[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <beb8c74e-e6ea-1b81-8dc0-16a1cab9603d@mev.co.uk>
Date: Fri, 29 May 2020 11:35:23 +0100
From: Ian Abbott <abbotti@....co.uk>
To: Al Viro <viro@...IV.linux.org.uk>,
Linus Torvalds <torvalds@...ux-foundation.org>
Cc: linux-kernel@...r.kernel.org, linux-fsdevel@...r.kernel.org
Subject: Re: [PATCH 03/10] comedi: get rid of compat_alloc_user_space() mess
in COMEDI_CHANINFO compat
On 29/05/2020 01:35, Al Viro wrote:
> From: Al Viro <viro@...iv.linux.org.uk>
>
> Just take copy_from_user() out of do_chaninfo_ioctl() into the caller and
> have compat_chaninfo() build a native version and pass it to do_chaninfo_ioctl()
> directly.
>
> Signed-off-by: Al Viro <viro@...iv.linux.org.uk>
> ---
> drivers/staging/comedi/comedi_fops.c | 68 ++++++++++++++++--------------------
> 1 file changed, 30 insertions(+), 38 deletions(-)
Signed-off-by: Ian Abbott <abbotti@....co.uk>
--
-=( Ian Abbott <abbotti@....co.uk> || Web: www.mev.co.uk )=-
-=( MEV Ltd. is a company registered in England & Wales. )=-
-=( Registered number: 02862268. Registered address: )=-
-=( 15 West Park Road, Bramhall, STOCKPORT, SK7 3JZ, UK. )=-
Powered by blists - more mailing lists