Tejun Heo 77f3f87938 [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 <davej@redhat.com>.  The second problem
was mentioned and fixed by Jeff Garzik <jgarzik@pobox.com> in a larger
cleanup patch.

Cc: Dave Jones <davej@redhat.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Tejun Heo <htejun@gmail.com>
2006-08-05 03:59:19 +09:00
..
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-06-30 19:25:36 +02:00
2006-07-24 22:47:14 -07:00
2006-06-25 10:00:58 -07:00
2006-06-25 10:00:58 -07:00
2006-06-26 09:58:18 -07:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-06-26 09:30:00 -05:00
2006-07-03 09:41:12 -05:00
2006-07-03 09:41:12 -05:00
2006-07-09 11:27:03 -05:00
2006-06-29 11:06:30 -04:00