aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/sched-migration.py
diff options
context:
space:
mode:
authorJim Foraker <[email protected]>2016-11-01 13:44:12 -0700
committerDoug Ledford <[email protected]>2016-12-14 12:16:11 -0500
commit22dccc5454a39427de7b87a080d026b6bf66a7b9 (patch)
tree3d0d33f5d42f44c114fb98b26f7f998f129fddf3 /tools/perf/scripts/python/sched-migration.py
parentf5eabf5e5129e8ab5b3e7f50b24444aca1680e64 (diff)
IB/rdmavt: Only put mmap_info ref if it exists
rvt_create_qp() creates qp->ip only when a qp creation request comes from userspace (udata is not NULL). If we exceed the number of available queue pairs however, the error path always attempts to put a kref to this structure. If the requestor is inside the kernel, this leads to a crash. We fix this by checking that qp->ip is not NULL before caling kref_put(). Signed-off-by: Jim Foraker <[email protected]> Acked-by: Dennis Dalessandro <[email protected]> Acked-by: Jonathan Toppins <[email protected]> Acked-by: Alex Estrin <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions