]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/ehca: Check idr_find() return value
authorAlexander Schmidt <alexs@linux.vnet.ibm.com>
Tue, 12 Aug 2008 13:46:27 +0000 (15:46 +0200)
committerRoland Dreier <rolandd@cisco.com>
Tue, 12 Aug 2008 18:34:59 +0000 (11:34 -0700)
commit129a10fb81309f455eeb444560ec38657d29c46f
tree544d44f33452e74b86a0869d5d5c64a503ba872b
parent17c2b53adbf1ebd7a8b6a63e2597199676426dbf
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>
drivers/infiniband/hw/ehca/ehca_reqs.c