lkml.org 
[lkml]   [2011]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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



\
 
 \ /
  Last update: 2011-06-03 20:27    [W:0.102 / U:0.472 seconds]
©2003-2011 Jasper Spaans