mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 13:18:46 +07:00
d9d5713ca6
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> |
||
---|---|---|
.. | ||
c2_ae.c | ||
c2_ae.h | ||
c2_alloc.c | ||
c2_cm.c | ||
c2_cq.c | ||
c2_intr.c | ||
c2_mm.c | ||
c2_mq.c | ||
c2_mq.h | ||
c2_pd.c | ||
c2_provider.c | ||
c2_provider.h | ||
c2_qp.c | ||
c2_rnic.c | ||
c2_status.h | ||
c2_user.h | ||
c2_vq.c | ||
c2_vq.h | ||
c2_wr.h | ||
c2.c | ||
c2.h | ||
Kbuild | ||
Kconfig |