From: John Stultz Date: Mon, 21 Oct 2013 16:58:07 +0000 (-0700) Subject: staging: ashmem: Fix ASHMEM_PURGE_ALL_CACHES return value X-Git-Tag: omap-for-v3.13/fixes-for-merge-window-take2~62^2~141 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5957324045ba2c127c9401fa3ac61ac52e043ca8;p=pandora-kernel.git staging: ashmem: Fix ASHMEM_PURGE_ALL_CACHES return value Hopefully this isn't too late for 3.12. In commit 7dc19d5aff (convert shrinkers to new count/scan API) the return value to PURGE_ALL_CACHES was dropped, causing -EPERM to always be returned. This patch re-adds the ret assignment, setting it to the the ashmem_shrink_count(), which is the lru_count. (Sorry this was missed in the review!) Fixes: 7dc19d5affd7 ("convert shrinkers to new count/scan API") Cc: Colin Cross Cc: Android Kernel Team Cc: Glauber Costa Reported-by: YongQin Liu Signed-off-by: John Stultz Cc: stable # 3.12 Acked-by: Dave Chinner Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed