[PATCH 4.14 046/126] i2c: altera: Fix potential integer overflow