[LINUX PATCH] ubifs: Fix wrong memory allocation