[PATCH 4.14 250/496] gpu: ipu-v3: prg: avoid possible array underflow