commit | 23d70503ee187819a3775c7ac73f17c5bfe3fad0 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyj.lk@gmail.com> | Fri Aug 05 13:46:49 2016 +0000 |
committer | Doug Ledford <dledford@redhat.com> | Mon Aug 22 14:26:54 2016 -0400 |
tree | 6a1c01eb9faa567cc2d9e050d9c9738a9c213391 | |
parent | 8303f683b161467b6595c153c8751b80f9df3508 [diff] |
IB/core: Fix possible memory leak in cma_resolve_iboe_route() 'work' and 'route->path_rec' are malloced in cma_resolve_iboe_route() and should be freed before leaving from the error handling cases, otherwise it will cause memory leak. Fixes: 200298326b27 ('IB/core: Validate route when we init ah') Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> Reviewed-by: Haggai Eran <haggaie@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>