summaryrefslogtreecommitdiffstats
path: root/net/rds
diff options
context:
space:
mode:
authorWang Nan <wangnan0@huawei.com>2015-04-08 10:59:32 +0000
committerArnaldo Carvalho de Melo <acme@redhat.com>2015-04-08 11:00:00 -0300
commitf6fcc1433a4a9057b2977313f31eadbc1c84268b (patch)
treec0c14964dd8bb24927a53be2c893ad6fb684f7b7 /net/rds
parent54a50f93eb13ab5efa7366627534e2b0f7caa8e5 (diff)
downloadlinux-f6fcc1433a4a9057b2977313f31eadbc1c84268b.tar.bz2
perf report: Don't call map__kmap if map is NULL.
report__warn_kptr_restrict() calls map__kmap(kernel_map) before checking kernel_map againest NULL. Which is dangerous, since map__kmap() will return a invalid and not NULL address. It will trigger a warning message in map__kmap() after the patch "perf: kmaps: enforce usage of kmaps to protect futher bugs." was applied. This patch fixes it by adding the missing checking. Signed-off-by: Wang Nan <wangnan0@huawei.com> Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Zefan Li <lizefan@huawei.com> Cc: pi3orama@163.com Link: http://lkml.kernel.org/r/1428490772-135393-1-git-send-email-wangnan0@huawei.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'net/rds')
0 files changed, 0 insertions, 0 deletions