linux/drivers/infiniband
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
..
core IB/core: Fix unused variable warning 2014-01-22 22:55:04 -08:00
hw RDMA/amso1100: Add check if cache memory was allocated before freeing it 2014-01-22 23:03:59 -08:00
ulp infiniband: make sure the src net is infiniband when create new link 2014-01-03 20:38:56 -05:00
Kconfig IB/core: Re-enable create_flow/destroy_flow uverbs 2013-11-17 08:22:09 -08:00
Makefile mlx5: Add driver for Mellanox Connect-IB adapters 2013-07-08 10:32:24 -07:00