diff options
author | Xiaotian Feng <xtfeng@gmail.com> | 2013-07-23 07:54:10 +0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2013-07-23 18:25:32 +0400 |
commit | c91bc6ccd13254826fdfceddba0f3b5e308aa93e (patch) | |
tree | 5981ac59d9a7d706a397a568cf4e447bc318b135 /include/linux/poison.h | |
parent | bb9696192826a7d9279caf872e95b41bc26c7eff (diff) | |
download | linux-c91bc6ccd13254826fdfceddba0f3b5e308aa93e.tar.xz |
ahci: fix Null pointer dereference in achi_host_active()
commit b29900e6 (AHCI: Make distinct names for ports in /proc/interrupts)
introuded a regression, which resulted Null pointer dereference for achi
host with dummy ports. For ahci ports, when the port is dummy port, its
private_data will be NULL, as ata_dummy_port_ops doesn't support ->port_start.
changes in v2: use pp to check dummy ports, update comments
Reported-and-tested-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Xiaotian Feng <xtfeng@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Cc: Alexander Gordeev <agordeev@redhat.com>
Cc: linux-ide@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'include/linux/poison.h')
0 files changed, 0 insertions, 0 deletions