Wei Yongjun 23d70503ee 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>
2016-08-22 14:26:54 -04:00
..
2016-05-24 14:44:04 -04:00
2015-10-08 11:09:10 +01:00
2015-06-12 14:49:18 -04:00
2015-05-05 13:21:27 -04:00
2016-03-03 10:20:25 -05:00
2016-06-06 19:36:21 -04:00
2016-01-19 15:25:45 -05:00
2008-07-14 23:48:44 -07:00
2016-06-06 19:36:21 -04:00
2016-05-13 13:37:18 -04:00
2016-03-03 10:20:25 -05:00
2016-08-04 20:10:31 -04:00
2016-03-03 10:20:25 -05:00
2016-08-04 20:26:31 -04:00