aboutsummaryrefslogtreecommitdiffstats
path: root/net/rds/ib_send.c
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2015-05-29 23:11:27 -0700
committerDoug Ledford <dledford@redhat.com>2015-06-02 09:22:31 -0400
commit1156256811e42908fd13c4cfcf32965d8b93f2a8 (patch)
tree7ee9400f906c878f8a0eb739dd60a2f9b23c82b5 /net/rds/ib_send.c
parentRDMA/ocrdma: Fix memory leak in _ocrdma_alloc_pd() (diff)
downloadlinux-dev-1156256811e42908fd13c4cfcf32965d8b93f2a8.tar.xz
linux-dev-1156256811e42908fd13c4cfcf32965d8b93f2a8.zip
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>
Diffstat (limited to 'net/rds/ib_send.c')
0 files changed, 0 insertions, 0 deletions