diff options
author | Ira Weiny <[email protected]> | 2011-05-19 18:19:28 -0700 |
---|---|---|
committer | Roland Dreier <[email protected]> | 2011-05-23 11:15:48 -0700 |
commit | c8367c4cd9de512d296fc557f121be62a43987f3 (patch) | |
tree | 36b9c185a8ebda7dfbe1a61884291f6ae04766d8 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 257313b2a87795e07a0bdf58d0fffbdba8b31051 (diff) |
IB/mad: Return EPROTONOSUPPORT when an RDMA device lacks the QP required
We had a script which was looping through the devices returned from
ibstat and attempted to register a SMI agent on an ethernet device.
This caused a kernel panic for IBoE devices that don't have QP0.
Fix this by checking if the QP exists before using it.
Signed-off-by: Ira Weiny <[email protected]>
Acked-by: Sean Hefty <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions