commit | 8e0d09b1232d0538066c40ed4c13086faccbdff6 | [log] [tgz] |
---|---|---|
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | Thu May 27 11:43:22 2021 -0400 |
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | Thu Jun 10 09:24:37 2021 +0200 |
tree | 6d5497b609d5b6f5670b775c1a7504ab5c7eaa78 | |
parent | 3b132ab67fc7a358fff35e808fa65d4bea452521 [diff] |
memory: fsl_ifc: fix leak of private memory on probe failure On probe error the driver should free the memory allocated for private structure. Fix this by using resource-managed allocation. Fixes: a20cbdeffce2 ("powerpc/fsl: Add support for Integrated Flash Controller") Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> Link: https://lore.kernel.org/r/20210527154322.81253-2-krzysztof.kozlowski@canonical.com