commit | 129a10fb81309f455eeb444560ec38657d29c46f | [log] [tgz] |
---|---|---|
author | Alexander Schmidt <alexs@linux.vnet.ibm.com> | Tue Aug 12 15:46:27 2008 +0200 |
committer | Roland Dreier <rolandd@cisco.com> | Tue Aug 12 11:34:59 2008 -0700 |
tree | 544d44f33452e74b86a0869d5d5c64a503ba872b | |
parent | 17c2b53adbf1ebd7a8b6a63e2597199676426dbf [diff] |
IB/ehca: Check idr_find() return value The idr_find() function may fail when trying to get the QP that is associated with a CQE, e.g. when a QP has been destroyed between the generation of a CQE and the poll request for it. In consequence, the return value of idr_find() must be checked and the CQE must be discarded when the QP cannot be found. Signed-off-by: Alexander Schmidt <alexs@linux.vnet.ibm.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>