From: Dan Williams Date: Fri, 7 Nov 2008 00:07:15 +0000 (+0000) Subject: ARM: xsc3: fix xsc3_l2_inv_range X-Git-Tag: v2.6.27.6~31 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0425d0a8eddbe8065a5ca705340646b7ad3d34a6;p=pandora-kernel.git ARM: xsc3: fix xsc3_l2_inv_range commit c7cf72dcadbe39c2077b32460f86c9f8167be3be upstream When 'start' and 'end' are less than a cacheline apart and 'start' is unaligned we are done after cleaning and invalidating the first cacheline. So check for (start < end) which will not walk off into invalid address ranges when (start > end). This issue was caught by drivers/dma/dmatest. 2.6.27 is susceptible. Cc: Cc: Haavard Skinnemoen Cc: Lothar Wafmann Cc: Lennert Buytenhek Cc: Eric Miao Signed-off-by: Dan Williams Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed