[PATCH 5.11 122/210] sch_red: fix off-by-one checks in red_check_params()