diff options
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index cc229e31432f..0009818a4306 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -3305,7 +3305,8 @@ EXPORT_SYMBOL_GPL(ata_sas_port_init); | |||
3305 | 3305 | ||
3306 | void ata_sas_port_destroy(struct ata_port *ap) | 3306 | void ata_sas_port_destroy(struct ata_port *ap) |
3307 | { | 3307 | { |
3308 | ap->ops->port_stop(ap); | 3308 | if (ap->ops->port_stop) |
3309 | ap->ops->port_stop(ap); | ||
3309 | kfree(ap); | 3310 | kfree(ap); |
3310 | } | 3311 | } |
3311 | EXPORT_SYMBOL_GPL(ata_sas_port_destroy); | 3312 | EXPORT_SYMBOL_GPL(ata_sas_port_destroy); |