Re: [patch] ata: ahci_xgene: dereferencing uninitialized pointer in probe

From: Tejun Heo
Date: Fri Mar 11 2016 - 12:41:15 EST

On Thu, Mar 10, 2016 at 10:45:32AM +0300, Dan Carpenter wrote:
> If the call to acpi_get_object_info() fails then "info" hasn't been
> initialized. In that situation, we already know that "version" should
> be XGENE_AHCI_V1 so we don't actually need to dereference "info".
> Fixes: c9802a4be661 ('ata: ahci_xgene: Add AHCI Support for 2nd HW version of APM X-Gene SoC AHCI SATA Host controller.')
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Applied to libata/for-4.6.