Messages in this thread | | | Date | Fri, 3 Jun 2011 13:22:45 -0500 | From | Timur Tabi <> | Subject | Re: [PATCH] lib: introduce strdup_from_user |
| |
Alexey Dobriyan wrote: > NAK > It accesses userspace data twice.
What's wrong with that? How else is it supposed to know how much to allocate without using strlen first?
Besides, it was Alan's idea to make this a common function. I can easily put it back in my driver.
-- Timur Tabi Linux kernel developer at Freescale
| |