Fix possible integer overflow in KGSL