[PATCH 4.4 14/38] sch_red: fix off-by-one checks in red_check_params()