aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/ehca/ehca_classes.h
diff options
context:
space:
mode:
authorAlexander Schmidt <alexs@linux.vnet.ibm.com>2008-08-12 15:46:27 +0200
committerRoland Dreier <rolandd@cisco.com>2008-08-12 11:34:59 -0700
commit129a10fb81309f455eeb444560ec38657d29c46f (patch)
tree544d44f33452e74b86a0869d5d5c64a503ba872b /drivers/infiniband/hw/ehca/ehca_classes.h
parentIB/ehca: Repoll CQ on invalid opcode (diff)
downloadlinux-dev-129a10fb81309f455eeb444560ec38657d29c46f.tar.xz
linux-dev-129a10fb81309f455eeb444560ec38657d29c46f.zip
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>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_classes.h')
0 files changed, 0 insertions, 0 deletions