summaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorSvetlana Mavrina <another.karnil@gmail.com>2014-01-12 11:56:09 +0000
committerRoland Dreier <roland@purestorage.com>2014-01-22 23:03:59 -0800
commitd9d5713ca628dc211d8b4a1da5fb9e0cfe592b92 (patch)
tree01d898563ea35fcf7b1f1deea669f3509b9bb839 /include/rdma
parent05633102d85b50f35325dfbedafcedd6c5b3264c (diff)
downloadlinux-stable-d9d5713ca628dc211d8b4a1da5fb9e0cfe592b92.tar.gz
linux-stable-d9d5713ca628dc211d8b4a1da5fb9e0cfe592b92.tar.bz2
linux-stable-d9d5713ca628dc211d8b4a1da5fb9e0cfe592b92.zip
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>
Diffstat (limited to 'include/rdma')
0 files changed, 0 insertions, 0 deletions