From: Laurent Pinchart Date: Fri, 7 Mar 2014 22:47:03 +0000 (+0100) Subject: iommu/omap: Fix 'no page for' debug message in flush_iotlb_page() X-Git-Tag: omap-for-v3.16/fixes-against-rc1~25^2~26^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7129a0e4d5835b7851208d35984bc80116f1ed0;p=pandora-kernel.git iommu/omap: Fix 'no page for' debug message in flush_iotlb_page() The flush_iotlb_page() function prints a debug message when no corresponding page was found in the TLB. That condition is incorrectly checked and always resolves to true, given that the for_each_iotlb_cr() loop is never interrupted and always reaches obj->nr_tlb_entries. Given that we can't have two TLB entries for the same VA, break from the loop when a match is found. Signed-off-by: Laurent Pinchart Acked-by: Suman Anna --- Reading git-diff-tree failed