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.176 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site