[PATCH AUTOSEL 5.4 05/17] habanalabs: prevent possible out-of-bounds array access