aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/libata-core.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r--drivers/ata/libata-core.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 753b0152afd1..b4abd6850367 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -5453,6 +5453,11 @@ int ata_device_add(const struct ata_probe_ent *ent)
5453 int rc; 5453 int rc;
5454 5454
5455 DPRINTK("ENTER\n"); 5455 DPRINTK("ENTER\n");
5456
5457 if (ent->irq == 0) {
5458 dev_printk(KERN_ERR, dev, "is not available: No interrupt assigned.\n");
5459 return 0;
5460 }
5456 /* alloc a container for our list of ATA ports (buses) */ 5461 /* alloc a container for our list of ATA ports (buses) */
5457 host = kzalloc(sizeof(struct ata_host) + 5462 host = kzalloc(sizeof(struct ata_host) +
5458 (ent->n_ports * sizeof(void *)), GFP_KERNEL); 5463 (ent->n_ports * sizeof(void *)), GFP_KERNEL);