Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit d9d5713c authored by Svetlana Mavrina's avatar Svetlana Mavrina Committed by Roland Dreier
Browse files

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: default avatarSvetlana Mavrina <another.karnil@gmail.com>
Reviewed-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarRoland Dreier <roland@purestorage.com>
parent 05633102
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment