diff options
author | Cyril Bur <cyril.bur@au1.ibm.com> | 2018-03-19 15:54:14 +1100 |
---|---|---|
committer | Stewart Smith <stewart@linux.vnet.ibm.com> | 2018-03-27 14:51:38 +1100 |
commit | 4599a8bdf9de5a011273844c6f4872eb2585cd72 (patch) | |
tree | 6a09d400ac09e3b0a5dfd21b9bd8e5777110bf50 /hw/npu2-opencapi.c | |
parent | f4f88196aec7a4c30e190bfbfe768cfc7e69aee6 (diff) | |
download | skiboot-4599a8bdf9de5a011273844c6f4872eb2585cd72.zip skiboot-4599a8bdf9de5a011273844c6f4872eb2585cd72.tar.gz skiboot-4599a8bdf9de5a011273844c6f4872eb2585cd72.tar.bz2 |
npu2-opencapi: Fix memory leak
Fixes: CID 264267
Signed-off-by: Cyril Bur <cyril.bur@au1.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/npu2-opencapi.c')
-rw-r--r-- | hw/npu2-opencapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/npu2-opencapi.c b/hw/npu2-opencapi.c index 135acca..e66ba6f 100644 --- a/hw/npu2-opencapi.c +++ b/hw/npu2-opencapi.c @@ -1387,7 +1387,6 @@ static void npu2_opencapi_probe(struct dt_node *dn) struct npu2 *n; int rc, i = 0; - path = dt_get_path(dn); gcid = dt_get_chip_id(dn); index = dt_prop_get_u32(dn, "ibm,npu-index"); links = dt_prop_get_u32(dn, "ibm,npu-links"); @@ -1399,6 +1398,7 @@ static void npu2_opencapi_probe(struct dt_node *dn) return; } + path = dt_get_path(dn); prlog(PR_INFO, "OCAPI: Chip %d Found OpenCAPI NPU%d (%d links) at %s\n", gcid, index, links, path); free(path); |