diff --git a/drivers/target/target_core_device.c b/drivers/target/target_core_device.c index 8032917b6636..68398753eb82 100644 --- a/drivers/target/target_core_device.c +++ b/drivers/target/target_core_device.c @@ -614,6 +614,7 @@ void core_dev_unexport( dev->export_count--; spin_unlock(&hba->device_lock); + lun->lun_sep = NULL; lun->lun_se_dev = NULL; }