RDMA/ocrdma: Check resource ids received in Async CQE
authorNaga Irrinki <Naga.Irrinki@avagotech.com>
Tue, 20 Oct 2015 08:47:58 +0000 (14:17 +0530)
committerDoug Ledford <dledford@redhat.com>
Wed, 21 Oct 2015 21:28:19 +0000 (17:28 -0400)
commitaeb922df2c6fc3fc21fd7ec4b9ae7e845e541450
tree05655b6b10d5c22f09a55b47475d612fff164d46
parentfb16d8c49e6fa2791620cf2cd61d6daa123ed51e
RDMA/ocrdma: Check resource ids received in Async CQE

Some versions of the FW sends wrong QP or CQ IDs in the
Async CQE. Adding a check to see whether qp or cq structures
associated with the CQE is valid.

Signed-off-by: Devesh Sharma <devesh.sharma@avagotech.com>
Signed-off-by: Selvin Xavier <selvin.xavier@avagotech.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ocrdma/ocrdma_hw.c