ion: don't use id 0 for handle cookie
authorColin Cross <ccross@android.com>
Fri, 23 Aug 2013 02:29:44 +0000 (19:29 -0700)
committerColin Cross <ccross@android.com>
Fri, 20 Sep 2013 04:03:33 +0000 (23:03 -0500)
commit66df93b4c9e78cf433b76d7fe3da4cc7fd06c36b
tree09f8789b833466ff44049872584de986d73ff8d9
parent002119eeb221cf1efd7afda836da768ff1cd0ad9
ion: don't use id 0 for handle cookie

ion userspace clients think that the cookie is a pointer, so they
use NULL to check if the handle has been initialized.  Set the first
id number to 1.

Change-Id: Ifb9af6029a8b08f57e41bc6160cc11e11001a2a9
Signed-off-by: Colin Cross <ccross@android.com>
drivers/gpu/ion/ion.c