diff --git a/scst/src/scst_main.c b/scst/src/scst_main.c index a3179ac26..6c68b2942 100644 --- a/scst/src/scst_main.c +++ b/scst/src/scst_main.c @@ -598,7 +598,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; }