diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index daa4d06ce2336ef4208fb0dd61f9e2f942f29209..50135f8df1b4a934d5eec08bb976ae99c473376d 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c @@ -727,7 +727,7 @@ struct se_device *target_alloc_device(struct se_hba *hba, const char *name) dev->queues = kcalloc(nr_cpu_ids, sizeof(*dev->queues), GFP_KERNEL); if (!dev->queues) { - dev->transport->free_device(dev); + hba->backend->ops->free_device(dev); return NULL; }