diff options
author | David Ahern <[email protected]> | 2012-07-29 20:54:35 -0600 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2012-08-03 10:35:23 -0300 |
commit | 347ed9903a10179d1cf733d5d77072b283d89da3 (patch) | |
tree | d5d26aedbf34f6d1ce8eb969fa051710f62b1410 /net/unix/af_unix.c | |
parent | 56e6f602aa4432f7fe90a0d9ba379b2735b07b6b (diff) |
perf kvm: Use strtol for walking guestmount directory
Only want to process directories under the guestmnount directory that
have a pid as a name (ie, all digits). Other entries in the guestmount
directory should be ignored. There is already a check that requires the
first character of each entry to be a digit, but atoi is used to convert
the directory name to a pid. For example if guestmount contains a
directory with the name 1foo, atoi converts it to a pid of 1 and a
machine is created with a pid of 1. This is wrong; this directory really
should be ignored. Use strtol to do that.
Signed-off-by: David Ahern <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions