diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2019-05-28 14:37:27 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2019-06-11 16:12:34 -0400 |
commit | 147b308e6a63a0572b750b1dc9b8b6fc33997e4b (patch) | |
tree | 4eb3502ef1d3e856e82d8449c5db7e5a2f7732c5 /drivers/infiniband/hw/mlx5/gsi.c | |
parent | 7a15414252ae4f1d450462d83f883b2d9d8036ee (diff) | |
download | talos-op-linux-147b308e6a63a0572b750b1dc9b8b6fc33997e4b.tar.gz talos-op-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/mlx5/gsi.c')
0 files changed, 0 insertions, 0 deletions