microblaze: Fix strncpy_from_user macro
authorMichal Simek <michal.simek@xilinx.com>
Wed, 16 Jan 2013 17:53:22 +0000 (18:53 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 12 Feb 2013 10:24:44 +0000 (11:24 +0100)
commit1de9e46c21298f85820e004bce103858bc9c9dcb
tree5a2b898aceffc2b8d61d5227a4238563a177783b
parent836dc9e3fbbab0c30aa6e664417225f5c1fb1c39
microblaze: Fix strncpy_from_user macro

Problem happens when len in strncpy_from_user is setup
and passing string has len-1 chars + \0 terminated
character. In this case was returned incorrect length
of the string.
It should always retunrs the length of the string
(not including the trailing NULL).

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
arch/microblaze/lib/uaccess_old.S