[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:
    > 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.061 / U:2.088 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site