[PATCH 4.18 033/158] memory: ti-aemif: fix a potential NULL-pointer dereference