[PATCH v2] char: tty3270: fix a missing check on list iterator