linux/drivers/infiniband/hw
Svetlana Mavrina d9d5713ca6 RDMA/amso1100: Add check if cache memory was allocated before freeing it
There is a path in handle_vq() where kmem_cache_free() can be called
with pointer to a local variable.  It can happen if vq_repbuf_alloc()
failed to allocate memory from cache and req is NULL.

The patch adds check if cache memory was allocated before freeing it.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Svetlana Mavrina <another.karnil@gmail.com>
Reviewed-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Roland Dreier <roland@purestorage.com>
2014-01-22 23:03:59 -08:00
..
amso1100 RDMA/amso1100: Add check if cache memory was allocated before freeing it 2014-01-22 23:03:59 -08:00
cxgb3 RDMA/cma: Add IPv6 support for iWARP 2013-08-12 12:32:31 -07:00
cxgb4 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2013-12-30 09:33:30 -08:00
ehca treewide: Add __GFP_NOWARN to k.alloc calls with v.alloc fallbacks 2013-08-20 13:06:40 +02:00
ipath IB/ipath: Convert ipath_user_sdma_pin_pages() to use get_user_pages_fast() 2013-11-08 14:43:11 -08:00
mlx4 Main batch of InfiniBand/RDMA changes for 3.13: 2013-11-18 15:36:04 -08:00
mlx5 IB/mlx5: Fix page shift in create CQ for userspace 2013-11-15 14:36:36 -08:00
mthca IB: Remove unnecessary semicolons 2013-10-14 10:10:00 -07:00
nes RDMA/nes: Remove self-assignment from nes_query_qp() 2013-11-09 02:34:27 -08:00
ocrdma RDMA/ocrdma: Remove redundant check in ocrdma_build_fr() 2013-11-08 14:43:06 -08:00
qib Main batch of InfiniBand/RDMA changes for 3.13: 2013-11-18 15:36:04 -08:00