ice: fix potential infinite loop because loop counter being too small
[linux-2.6-block.git] / drivers / net / ethernet / intel / ice / ice_sched.c
index fc624b73d05dcfe0e1819398b1948a122e9b1cc2..2fde9653a608fb7bc520006561e01d1335b9f24a 100644 (file)
@@ -1036,7 +1036,7 @@ enum ice_status ice_sched_query_res_alloc(struct ice_hw *hw)
        struct ice_aqc_query_txsched_res_resp *buf;
        enum ice_status status = 0;
        __le16 max_sibl;
-       u8 i;
+       u16 i;
 
        if (hw->layer_info)
                return status;