From: Ira Weiny Date: Fri, 20 May 2011 01:19:28 +0000 (-0700) Subject: IB/mad: Return EPROTONOSUPPORT when an RDMA device lacks the QP required X-Git-Tag: v3.0-rc1~132^2^4~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8367c4cd9de512d296fc557f121be62a43987f3;p=pandora-kernel.git 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 Acked-by: Sean Hefty Signed-off-by: Roland Dreier --- Reading git-diff-tree failed