Re: [PATCH v2] AHCI: fix Null pointer dereference in achi_host_active()

2013-07-23 Thread Tejun Heo
On Tue, Jul 23, 2013 at 11:54:10AM +0800, Xiaotian Feng wrote: > 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_d

[PATCH v2] AHCI: fix Null pointer dereference in achi_host_active()

2013-07-22 Thread Xiaotian Feng
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.