Ira Weiny c8367c4cd9 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 <weiny2@llnl.gov>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2011-05-23 11:15:48 -07:00
..
2011-01-16 21:16:31 -08:00
2009-01-17 17:11:57 -08:00
2011-05-09 22:06:10 -07:00
2011-01-16 21:16:31 -08:00
2010-05-25 21:10:57 -07:00
2011-05-09 22:06:10 -07:00
2011-01-16 21:16:31 -08:00