Re: [PATCH] lib: introduce strdup_from_user
From: Timur Tabi
Date: Fri Jun 03 2011 - 14:24:06 EST
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/