[PATCH] cxgb4: cm: fix a incorrect NULL check on list iterator