From: Marek Szyprowski Date: Fri, 27 Jul 2012 15:12:50 +0000 (+0200) Subject: ARM: dma-mapping: fix error path for memory allocation failure X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b2252182afb19d26b86328b5574c08ef82ae782;p=pandora-kernel.git ARM: dma-mapping: fix error path for memory allocation failure This patch fixes incorrect check in error path. When the allocation of first page fails, the kernel ops appears due to accessing -1 element of the pages array. Reported-by: Sylwester Nawrocki Signed-off-by: Marek Szyprowski --- Reading git-diff-tree failed