From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Fri, 9 Oct 2015 19:35:35 +0800 Subject: [U-Boot] [PATCH v2] nios2: convert dma_alloc_coherent to use memalign In-Reply-To: <56177F5F.7060009@wytron.com.tw> References: <1444013823-11909-1-git-send-email-thomas@wytron.com.tw> <1444114189-1220-1-git-send-email-thomas@wytron.com.tw> <201510082343.02636.marex@denx.de> <56177F5F.7060009@wytron.com.tw> Message-ID: <5617A687.50301@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, I look into the code again. I think it is the memalign() that might fail due to out of memory. While the ioremap() of nios2 won't fail. So I added a check on memalign() return. Please see v3. Best regards, Thomas