]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
libata-acpi: Fix NULL ptr derference in ata_acpi_dev_handle
authorAaron Lu <aaron.lu@intel.com>
Tue, 9 Oct 2012 07:37:48 +0000 (15:37 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 26 Nov 2012 20:14:05 +0000 (12:14 -0800)
commitfee02d04c682f3ef8d1d1ec46e22fb7f833c9330
tree37eea1cda5330afb187c42bd4582c3495b57bed6
parent9e9dbb97a010f748114404bd44ab2e02082d215c
libata-acpi: Fix NULL ptr derference in ata_acpi_dev_handle

commit 60817a680b1bd3341b6909fab7d8a1fcc3a78369 upstream.

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 <dan@vanderster.com>
Tested-by: Dan van der Ster <dan@vanderster.com>
Signed-off-by: Aaron Lu <aaron.lu@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Tested-by: Simon <tangouniform@sbcglobal.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/libata-acpi.c