Re: getting rid of from_user flag

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Sep 30, 2005 at 05:41:47PM +0530, kaustav.majumdar@xxxxxxxxx wrote:
> Hi all,
>  
> I was going through the structure usb_serial_device_type in
> drivers/usb/serial/usb-serial.h... In 2.6.10 the write function
> prototype had been changed to exclude the int from_user...... so now
> how can i check for whether the data is coming from user space or
> kernel space without checking the from_user flag.

If you look further, all tty drivers lost that flag, as they all take
the data straight from kernelspace, no need to check for userspace
buffers anymore.

So you get to delete some code from your driver now...

Hope this helps,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux