On 29/05/2020 01:35, Al Viro wrote:
From: Al Viro <v...@zeniv.linux.org.uk>

Just take copy_from_user() out of do_rangeing_ioctl() into the caller and
have compat_rangeinfo() build a native version and pass it to 
do_rangeinfo_ioctl()
directly.

Signed-off-by: Al Viro <v...@zeniv.linux.org.uk>
---
  drivers/staging/comedi/comedi_fops.c     | 43 ++++++++++++++------------------
  drivers/staging/comedi/comedi_internal.h |  2 +-
  drivers/staging/comedi/range.c           | 17 ++++++-------
  3 files changed, 27 insertions(+), 35 deletions(-)

Signed-off-by: Ian Abbott <abbo...@mev.co.uk>

--
-=( Ian Abbott <abbo...@mev.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. )=-

Reply via email to