From: Tejun Heo Date: Fri, 4 Aug 2006 18:59:19 +0000 (+0900) Subject: [PATCH] libata: fix ata_device_add() error path X-Git-Tag: v2.6.18-rc5~123^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77f3f879387cc5fce6c7a4ca7777c586fe6291cd;p=pandora-kernel.git [PATCH] libata: fix ata_device_add() error path In the error path, ata_device_add() * dereferences null host_set->ports[] element. * calls scsi_remove_host() on not-yet-added shost. This patch fixes both bugs. The first problem was spotted and initial patch submitted by Dave Jones . The second problem was mentioned and fixed by Jeff Garzik in a larger cleanup patch. Cc: Dave Jones Cc: Jeff Garzik Signed-off-by: Tejun Heo --- Reading git-diff-tree failed