diff options
author | Zhu Yanjun <yanjun.zhu@oracle.com> | 2018-09-30 02:27:16 -0400 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-10-03 16:03:36 -0600 |
commit | aae0484e15f062ad2c2502e68e15dfb8b8f84608 (patch) | |
tree | b6a52926a9eaebce304dab267d8de55363b873dd /lib | |
parent | IB/mthca: Fix error return code in __mthca_init_one() (diff) | |
download | linux-dev-aae0484e15f062ad2c2502e68e15dfb8b8f84608.tar.xz linux-dev-aae0484e15f062ad2c2502e68e15dfb8b8f84608.zip |
IB/rxe: avoid srq memory leak
In rxe_queue_init, q and q->buf are allocated. In do_mmap_info, q->ip is
allocated. When error occurs, rxe_srq_from_init and the later error
handler do not free these allocated memories. This will make memory leak.
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions