Commit aee7a283 authored by Michael Ellerman's avatar Michael Ellerman Committed by Benjamin Herrenschmidt
Browse files

powerpc: Fix memory leak in axon_msi.c

cppcheck found a memory leak in axon_msi, if dcr_base or dcr_len are zero,
we have already allocated msic, so we should free it in the error path.
Signed-off-by: default avatarEric Sesterhenn <>
Acked-by: default avatarMichael Ellerman <>
Acked-by: default avatarArnd Bergmann <>
Signed-off-by: default avatarBenjamin Herrenschmidt <>
parent 11a50873
......@@ -365,7 +365,7 @@ static int axon_msi_probe(struct of_device *device,
"axon_msi: couldn't parse dcr properties on %s\n",
goto out;
goto out_free_msic;
msic->dcr_host = dcr_map(dn, dcr_base, dcr_len);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment