Patch "ata: ahci_xgene: dereferencing uninitialized pointer in probe" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
ata: ahci_xgene: dereferencing uninitialized pointer in probe
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
ata-ahci_xgene-dereferencing-uninitialized-pointer-in-probe.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
8134233e8d346aaa1c929dc510e75482ae318bceMon Sep 17 00:00:00 2001
From: Dan Carpenter <[email protected]>
Date: Thu, 10 Mar 2016 10:45:32 +0300
Subject: ata: ahci_xgene: dereferencing uninitialized pointer in probe
From: Dan Carpenter <[email protected]>
commit 8134233e8d346aaa1c929dc510e75482ae318bce upstream.
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".
--- drivers/ata/ahci_xgene.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/ata/ahci_xgene.c +2 -2
@@ -739,9 +739,9 @@ static int xgene_ahci_probe(struct platfdev_warn (&pdev->dev,"%s: Error reading device info. Assume version1\n" , __func__); version = XGENE_AHCI_V1; - } -if (info->valid &ACPI_VALID_CID ) + }else if (info->valid &ACPI_VALID_CID ) { version =XGENE_AHCI_V2 ; + } } }#endif
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/ata-ahci_xgene-dereferencing-uninitialized-pointer-in-probe.patch