Fix a potential subtraction overflow issue in KGSL