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-Tag: v3.6-rc1~57^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fa8af91f0679f2abbebe1382b937264f3a8b981;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