Re: [PATCH] Revert "ata: ahci_platform: convert kcalloc to devm_kcalloc"
From: Tejun Heo
Date: Tue Jul 24 2018 - 12:48:03 EST
On Tue, Jul 17, 2018 at 10:49:35AM +0000, Corentin Labbe wrote:
> Since ahci_platform_put_resources() use target_pwrs after "devm_" freed
> it, we cannot use devm_kcalloc for allocating target_pwrs.
> This reverts commit bd0038b1b4f499d814d8f33a55b1df5ea6cf3b85.
> Reported-by: Mikko Perttunen <mperttunen@xxxxxxxxxx>
> Signed-off-by: Corentin Labbe <clabbe@xxxxxxxxxxxx>
Applied to libata/for-4.19. Sorry about the delay.