[PATCH] When CONFIG_BASE_SMALL=1, cascade() may enter an infinite loop