linux_dsm_epyc7002/drivers/infiniband/hw/amso1100
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
..
c2_ae.c IB: Remove unnecessary semicolons 2013-10-14 10:10:00 -07:00
c2_ae.h
c2_alloc.c RDMA/amso1100: Use the dma state API instead of pci equivalents 2010-04-21 15:23:10 -07:00
c2_cm.c RDMA/cma: Add IPv6 support for iWARP 2013-08-12 12:32:31 -07:00
c2_cq.c RDMA/amso1100: Use the dma state API instead of pci equivalents 2010-04-21 15:23:10 -07:00
c2_intr.c RDMA/amso1100: Add check if cache memory was allocated before freeing it 2014-01-22 23:03:59 -08:00
c2_mm.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
c2_mq.c RDMA/amso1100: Start of endianness annotation 2008-04-16 21:01:08 -07:00
c2_mq.h RDMA/amso1100: Use the dma state API instead of pci equivalents 2010-04-21 15:23:10 -07:00
c2_pd.c Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
c2_provider.c IB: Use central enum for speed instead of hard-coded values 2012-03-05 09:25:16 -08:00
c2_provider.h RDMA/amso1100: Use the dma state API instead of pci equivalents 2010-04-21 15:23:10 -07:00
c2_qp.c drivers/infiniband/hw/amso1100: convert to using idr_alloc_cyclic 2013-04-29 18:28:41 -07:00
c2_rnic.c Drivers: infinband: remove __dev* attributes. 2013-01-03 15:57:15 -08:00
c2_status.h
c2_user.h
c2_vq.c RDMA/amso1100: Fix compile warnings 2011-01-28 15:40:25 -08:00
c2_vq.h
c2_wr.h Fix common misspellings 2011-03-31 11:26:23 -03:00
c2.c RDMA/amso1100: Use module_pci_driver() to simplify the code 2013-02-15 15:16:10 -08:00
c2.h drivers/infiniband/hw/amso1100: convert to using idr_alloc_cyclic 2013-04-29 18:28:41 -07:00
Kbuild IB: Replace EXTRA_CFLAGS with ccflags-y 2010-10-23 13:45:03 -07:00
Kconfig