[PATCH 5.10 112/188] sch_red: fix off-by-one checks in red_check_params()