android_kernel_xiaomi_sm7250/drivers/infiniband/hw
Roland Dreier 23f1b38481 IB/mlx4: Fix error path in create_qp_common()
The error handling code at err_wrid in create_qp_common() does not
handle a userspace QP attached to an SRQ correctly, since it ends up
in the else clause of the if statement.  This means it tries to
kfree() the uninitialized qp->sq.wrid and qp->rq.wrid pointers.  Fix
this so we only free the wrid arrays for kernel QPs.

Pointed out by Michael S. Tsirkin <mst@dev.mellanox.co.il>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2007-07-20 21:19:43 -07:00
..
amso1100 mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
cxgb3 some kmalloc/memset ->kzalloc (tree wide) 2007-07-19 10:04:50 -07:00
ehca mm: Remove slab destructors from kmem_cache_create(). 2007-07-20 10:11:58 +09:00
ipath IB/ipath: Remove ipath_layer dead code 2007-07-20 21:19:43 -07:00
mlx4 IB/mlx4: Fix error path in create_qp_common() 2007-07-20 21:19:43 -07:00
mthca IB/mthca: Change command token on timeout 2007-07-20 21:19:43 -07:00