memory: fsl_ifc: fix leak of private memory on probe failure
stable inclusion from stable-v4.19.198 commit ee1aa737ba0b75ab8af3444c4ae5bdba36aed6e6 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9RL3N CVE: CVE-2021-47314 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ee1aa737ba0b75ab8af3444c4ae5bdba36aed6e6 -------------------------------- [ Upstream commit 8e0d09b1 ] On probe error the driver should free the memory allocated for private structure. Fix this by using resource-managed allocation. Fixes: a20cbdef ("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 Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Tong Tiangen <tongtiangen@huawei.com>
Loading
Please sign in to comment