From: Aaron Lu Date: Tue, 9 Oct 2012 07:37:48 +0000 (+0800) Subject: libata-acpi: Fix NULL ptr derference in ata_acpi_dev_handle X-Git-Tag: v3.7-rc7~36^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60817a680b1bd3341b6909fab7d8a1fcc3a78369;p=pandora-kernel.git libata-acpi: Fix NULL ptr derference in ata_acpi_dev_handle commit 6b66d95895c149cbc04d4fac5a2f5477c543a8ae didn't handle SATA PMP case in ata_acpi_bind_device and will cause a NULL ptr dereference when user attached a SATA drive to the PMP port. Fix this by checking PMP support. This bug is reported by Dan van der Ster in the following bugzilla page: https://bugzilla.kernel.org/show_bug.cgi?id=48211 Reported-by: Dan van der Ster Tested-by: Dan van der Ster Signed-off-by: Aaron Lu Cc: Signed-off-by: Jeff Garzik Tested-by: Simon --- Reading git-diff-tree failed