From: Michal Simek Date: Wed, 16 Jan 2013 17:53:22 +0000 (+0100) Subject: microblaze: Fix strncpy_from_user macro X-Git-Tag: v3.9-rc1~58^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1de9e46c21298f85820e004bce103858bc9c9dcb;p=pandora-kernel.git 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 --- Reading git-diff-tree failed