Showing error 986

User: Jiri Slaby
Error type: Leaving function in locked state
Error type description: Some lock is not unlocked on all paths of a function, so it is leaked
File location: drivers/infiniband/hw/cxgb3/iwch_cq.c
Line in file: 192
Project: Linux Kernel
Project version: 2.6.28
Tools: Stanse (1.2)
Entered: 2012-03-02 21:35:18 UTC


Source:

162                case TPT_ERR_INVALIDATE_MR_WITH_MW_BOUND:
163                        wc->status = IB_WC_MW_BIND_ERR;
164                        break;
165                case TPT_ERR_CRC:
166                case TPT_ERR_MARKER:
167                case TPT_ERR_PDU_LEN_ERR:
168                case TPT_ERR_OUT_OF_RQE:
169                case TPT_ERR_DDP_VERSION:
170                case TPT_ERR_RDMA_VERSION:
171                case TPT_ERR_DDP_QUEUE_NUM:
172                case TPT_ERR_MSN:
173                case TPT_ERR_TBIT:
174                case TPT_ERR_MO:
175                case TPT_ERR_MSN_RANGE:
176                case TPT_ERR_IRD_OVERFLOW:
177                case TPT_ERR_OPCODE:
178                        wc->status = IB_WC_FATAL_ERR;
179                        break;
180                case TPT_ERR_SWFLUSH:
181                        wc->status = IB_WC_WR_FLUSH_ERR;
182                        break;
183                default:
184                        printk(KERN_ERR MOD "Unexpected cqe_status 0x%x for "
185                               "QPID=0x%0x\n", CQE_STATUS(cqe), CQE_QPID(cqe));
186                        ret = -EINVAL;
187                }
188        }
189out:
190        if (wq)
191                spin_unlock(&qhp->lock);
192        return ret;
193}
194
195int iwch_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
196{
197        struct iwch_dev *rhp;
198        struct iwch_cq *chp;
199        unsigned long flags;
200        int npolled;
201        int err = 0;
202
Show full sources