diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index 36d3f1900..8d83363b3 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -597,7 +597,7 @@ static inline int test_sess_list(struct scst_tgt *tgt) { int res; mutex_lock(&scst_mutex); - res = list_empty(&tgt->sess_list); + res = list_empty(&tgt->sysfs_sess_list); mutex_unlock(&scst_mutex); return res; }