[PATCH 4.14 25/68] sch_red: fix off-by-one checks in red_check_params()