diff options
author | 2016-07-28 15:21:12 -0400 | |
---|---|---|
committer | 2016-08-02 22:46:21 -0400 | |
commit | 53445bb32d244b1b32e8d88346a551130fb35544 (patch) | |
tree | d693acb239cf1e977333da876a912c38ed16943f /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | IB/hfi1: Rename TID mmu_rb_* functions (diff) | |
download | linux-dev-53445bb32d244b1b32e8d88346a551130fb35544.tar.xz linux-dev-53445bb32d244b1b32e8d88346a551130fb35544.zip |
IB/hfi1: Prevent null pointer dereference
If a context has not been assigned or assignment failed, pq may be NULL.
Move the unregister within the protection of the null check.
Reviewed-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions