diff options
author | Leon Romanovsky | 2019-05-28 13:37:27 +0200 |
---|---|---|
committer | Doug Ledford | 2019-06-11 22:12:34 +0200 |
commit | 147b308e6a63a0572b750b1dc9b8b6fc33997e4b (patch) | |
tree | 4eb3502ef1d3e856e82d8449c5db7e5a2f7732c5 /drivers/infiniband/hw/qib/qib_rc.c | |
parent | RDMA: Move owner into struct ib_device_ops (diff) | |
download | kernel-qcow2-linux-147b308e6a63a0572b750b1dc9b8b6fc33997e4b.tar.gz kernel-qcow2-linux-147b308e6a63a0572b750b1dc9b8b6fc33997e4b.tar.xz kernel-qcow2-linux-147b308e6a63a0572b750b1dc9b8b6fc33997e4b.zip |
RDMA/nes: Avoid memory allocation during CQ destroy
The memory allocation call can fail and cause to early return
from nes_desotroy_cq() function. This situation will cause to
memory leak of struct nes_cq. Rewrite function to avoid memory
allocation.
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_rc.c')
0 files changed, 0 insertions, 0 deletions