[lkml]   [2011]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] lib: introduce strdup_from_user
Alexey Dobriyan wrote:
> 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.062 / U:6.536 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site