diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index 1669dc8d1..3992b2d50 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -1203,6 +1203,7 @@ out_del_unlocked: mutex_lock(&scst_mutex); list_del_init(&dev->dev_list_entry); mutex_unlock(&scst_mutex); + scst_free_device(dev); goto out; #else