commit | 5b59a3969e95cd9be3699ecf7149ae8ef103b6f5 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Tue Aug 08 18:41:02 2017 +0100 |
committer | Doug Ledford <dledford@redhat.com> | Wed Aug 16 11:30:33 2017 -0400 |
tree | 940d528d54ef8bb6b51f82225ecd41a1b96b056e | |
parent | aa939c12ab8a0c094420ad1b909a957ac590e43e [diff] |
IB/hns: fix memory leak on ah on error return path When dmac is NULL, ah is not being freed on the error return path. Fix this by kfree'ing it. Detected by CoverityScan, CID#1452636 ("Resource Leak") Fixes: d8966fcd4c25 ("IB/core: Use rdma_ah_attr accessor functions") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Doug Ledford <dledford@redhat.com>