Re: Using acces_ok() in device driver

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bartek Dolewski <doles2@...>
Cc: <kernelnewbies@...>
Date: Monday, August 18, 2008 - 7:37 pm

Hi,

"Bartek Dolewski" <doles2@gmail.com> writes:


You return -EFAULT unconditionally               ^.

No matter what access_ok() says.

It's funny that you already have it indented according to the actual
code-flow :)


The memory region that spans from addr to addr+size.  So in your case
from buffer[0] to buffer[length - 1].  The call you have should be
correct if I didn't miss something.

	Hannes

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Using acces_ok() in device driver, Bartek Dolewski, (Mon Aug 18, 6:54 pm)
Re: Using acces_ok() in device driver, Mohamed Thalib .H, (Tue Aug 19, 12:07 am)
Re: Using acces_ok() in device driver, Johannes Weiner, (Mon Aug 18, 7:37 pm)