android_kernel_motorola_sm6225/drivers/infiniband/hw
Dan Carpenter cab66d1273 IB/mlx4: Fix bug unwinding on error in mlx4_ib_init_sriov()
We have to decrement "i" before calling mlx4_ib_free_demux_ctx() or we
free something that wasn't allocated.  That's fine for free_pv_object()
but it would lead to a NULL dereference calling mlx4_ib_free_demux_ctx().
The null dereference is because ->tun is NULL when we check:

	if (!ctx->tun[i])

Also we didn't free ->sriov.demux[0] so it was a small leak.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2013-02-15 15:22:26 -08:00
..
amso1100 Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
cxgb3 RDMA/cxgb3: use WARN 2012-11-26 11:08:16 -08:00
cxgb4 RDMA/cxgb4: Fix bug for active and passive LE hash collision path 2012-12-19 23:03:12 -08:00
ehca Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
ipath Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
mlx4 IB/mlx4: Fix bug unwinding on error in mlx4_ib_init_sriov() 2013-02-15 15:22:26 -08:00
mthca Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
nes Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
ocrdma RDMA/ocrdma: Fix CQE expansion of unsignaled WQE 2012-09-14 10:40:58 -07:00
qib IB/qib: Fix for broken sparse warning fix 2013-02-05 09:43:09 -08:00