[PATCH 4.14 042/323] intel_th: Consistency and off-by-one fix