summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger
diff options
context:
space:
mode:
authorJamie Gennis <jgennis@google.com>2011-02-27 15:44:36 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-02-27 15:44:36 -0800
commitdb7b742f65b2b88ea414e666e1079cc21b51f715 (patch)
tree1c6db7a9e7e55e8c51db4bd409c033b5adc03a55 /services/surfaceflinger
parent2a4d60e301f35499aa3658c85e8b6ec5cbf1a7a2 (diff)
parenteafc33acff6654e259a75f673cb97cd9f8898cba (diff)
downloadframeworks_native-db7b742f65b2b88ea414e666e1079cc21b51f715.zip
frameworks_native-db7b742f65b2b88ea414e666e1079cc21b51f715.tar.gz
frameworks_native-db7b742f65b2b88ea414e666e1079cc21b51f715.tar.bz2
am 919853ce: Merge "Prevent SurfaceFlinger from using layer token 31." into gingerbread
* commit '919853ce244f853966817d4adb2f3b7b6e4bbe74': Prevent SurfaceFlinger from using layer token 31.
Diffstat (limited to 'services/surfaceflinger')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 4876946..4b3235d 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2427,7 +2427,7 @@ ssize_t UserClient::getTokenForSurface(const sp<ISurface>& sur) const
}
break;
}
- if (++name > 31)
+ if (++name >= SharedBufferStack::NUM_LAYERS_MAX)
name = NO_MEMORY;
} while(name >= 0);