summaryrefslogtreecommitdiffstats
path: root/include/rdma/ib_verbs.h
diff options
context:
space:
mode:
authorJack Morgenstein2012-05-10 22:28:09 +0200
committerRoland Dreier2012-05-19 02:45:01 +0200
commit035b1032b57635e0b6015aed47dcb43c01e4ce7f (patch)
treeaecc4879075df50b6364e4b4305c7894619fa281 /include/rdma/ib_verbs.h
parentIB/mlx4: Increase the number of vectors (EQs) available for ULPs (diff)
downloadkernel-qcow2-linux-035b1032b57635e0b6015aed47dcb43c01e4ce7f.tar.gz
kernel-qcow2-linux-035b1032b57635e0b6015aed47dcb43c01e4ce7f.tar.xz
kernel-qcow2-linux-035b1032b57635e0b6015aed47dcb43c01e4ce7f.zip
IB/mlx4: Fix mlx4_ib_add() error flow
We need to use a different loop index for mlx4_counter_alloc() and for device_create_file() iterations: the mlx4_counter_alloc() loop index is used in the error flow to free counters. If the same loop index is used for device_create_file() and, say, the device_create_file() loop fails on the first iteration, the allocated counters will not be freed. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'include/rdma/ib_verbs.h')
0 files changed, 0 insertions, 0 deletions