diff options
| author | Chen Gang <gang.chen@asianux.com> | 2013-01-21 17:33:26 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-21 14:00:10 -0800 |
| commit | ec7e0aef31e2eece787f7c49df1f031f2a983265 (patch) | |
| tree | 45b7fa8dc599aabe277d656d86d3957e7c445ef1 /tools/perf/scripts | |
| parent | cdbbc618f8f483d72e82af05f2873621cc9c2314 (diff) | |
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 <gang.chen@asianux.com>
Cc: Omar Ramirez Luna <omar.ramirez@copitl.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions
