mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
In strncpy_from_user_asm, when the destination buffer length was the same as the actual string length, we were returning the size of the destination buffer. But since it's a NUL terminated string, we should return the length of the string instead. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
4.1 KiB
4.1 KiB