[PATCH 4.14 111/157] UBIFS: Fix potential integer overflow in allocation