diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-05-27 11:43:22 -0400 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com> | 2021-06-10 09:24:37 +0200 |
commit | 8e0d09b1232d0538066c40ed4c13086faccbdff6 (patch) | |
tree | 6d5497b609d5b6f5670b775c1a7504ab5c7eaa78 /drivers/most/core.c | |
parent | 3b132ab67fc7a358fff35e808fa65d4bea452521 (diff) | |
download | linux-8e0d09b1232d0538066c40ed4c13086faccbdff6.tar.bz2 |
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
Diffstat (limited to 'drivers/most/core.c')
0 files changed, 0 insertions, 0 deletions