]> git.baikalelectronics.ru Git - kernel.git/commit
perf machine: Pass correct string to dso__adjust_kmod_long_name
authorWang Nan <wangnan0@huawei.com>
Mon, 7 Dec 2015 02:36:25 +0000 (02:36 +0000)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 7 Dec 2015 21:12:45 +0000 (18:12 -0300)
commit41a40b9e572eab202f4ea7e5995379979f653330
tree7cb0333e08d8aa028461af9fa1d37b5e12f67ac5
parentee92a7323c9cac85d5de3637463ae7d1b55ad528
perf machine: Pass correct string to dso__adjust_kmod_long_name

There's a mistake in dso__adjust_kmod_long_name() that it use strdup()
to dup the new long_name of a dso, but passes the original string to
dso__set_long_name(). Which causes random crash during cleanup.

Signed-off-by: Wang Nan <wangnan0@huawei.com>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Zefan Li <lizefan@huawei.com>
Cc: pi3orama@163.com
Fixes: 43cc553dbd74 ("perf machine: Adjust dso->long_name for offline module")
Link: http://lkml.kernel.org/r/1449455785-42020-1-git-send-email-wangnan0@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c