From: Chen Gang Date: Mon, 21 Jan 2013 09:33:26 +0000 (+0800) Subject: staging: tidspbridge/pmgr: additional checking after return from strlen_user X-Git-Tag: v3.9-rc1~127^2~357 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec7e0aef31e2eece787f7c49df1f031f2a983265;p=pandora-kernel.git staging: tidspbridge/pmgr: additional checking after return from strlen_user strlen_user will return the length including final NUL. and will return 0 if failed (for example: if user string not NUL terminated) so need check whether it is an invalid parameter. addtional info: can reference the comments of strlen_user in lib/strnlen_user.c Signed-off-by: Chen Gang Cc: Omar Ramirez Luna Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed