patch #1 fix a null-ptr-deref problem that caused by double put refcount. patch #2 ~ #4 handle error case of transport_add_device(), if it's ignored, it will lead kernel crash because of trying to delete not added device in transport_remove_device(). v2 -> v3: Update commit message of patch #2 ~ #4 to more clear. v1 -> v2: Update commit message that suggested by Damien. Yang Yingliang (4): ata: libata-transport: fix double ata_host_put() in ata_tport_add() ata: libata-transport: fix error handling in ata_tport_add() ata: libata-transport: fix error handling in ata_tlink_add() ata: libata-transport: fix error handling in ata_tdev_add() drivers/ata/libata-transport.c | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) -- 2.25.1