dc_hw: fix off-by-one bug