[PATCH 4.19 36/66] sch_red: fix off-by-one checks in red_check_params()