linux-stable/drivers/infiniband/hw
Roland Dreier 1156256811 IB/mlx4: Fix error paths in mlx4_ib_create_flow()
The unwinding clean up code are err_create_flow starts at the current
index i.  That means we shouldn't increment i until we're really sure
we won't have to destroy the current flow; otherwise we might
increment the index, fail inside an is_bonded block, and end up
accessing off the end of the reg_id[] array.

This was detected by Coverity (CID 1271229).

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
2015-06-02 09:22:31 -04:00
..
amso1100 IB/core: Replace ib_umem's offset field with a full address 2014-12-15 18:13:35 -08:00
cxgb3 RDMA/cxgb3: Remove a couple unneeded conditions 2014-05-28 10:04:00 -07:00
cxgb4 infiniband: Remove duplicated KERN_<LEVEL> from pr_<level> uses 2015-05-12 15:52:37 -04:00
ehca IB/ehca: use correct destination for memcpy 2015-05-11 17:14:37 -04:00
ipath VFS: assorted weird filesystems: d_inode() annotations 2015-04-15 15:06:58 -04:00
mlx4 IB/mlx4: Fix error paths in mlx4_ib_create_flow() 2015-06-02 09:22:31 -04:00
mlx5 infiniband: Remove duplicated KERN_<LEVEL> from pr_<level> uses 2015-05-12 15:52:37 -04:00
mthca IB/mad: add new ioctl to ABI to support new registration options 2014-08-10 20:36:00 -07:00
nes RDMA/nes: Enable the use of the tos field in the nes driver 2015-06-02 09:22:31 -04:00
ocrdma RDMA/ocrdma: Fix memory leak in _ocrdma_alloc_pd() 2015-06-02 09:22:31 -04:00
qib IB/qib: fix test of unsigned variable 2015-05-12 13:55:41 -04:00
usnic IOMMU Updates for Linux v3.18 2014-10-15 07:23:49 +02:00
Makefile IB: Allow build of hw/ and ulp/ subdirectories independently 2014-06-02 14:51:12 -07:00