ion: don't use id 0 for handle cookie
authorColin Cross <ccross@android.com>
Fri, 13 Dec 2013 22:24:52 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:57:18 +0000 (08:57 -0800)
commitb4f8d242c6fb5e631ba861c1a6024ae14b02f5a8
tree6115fcd13b17a6066058b26c6f26c32f3626cf85
parente1cf36823407751d1ad1168bc718cf5a0ac5dbf4
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.

Signed-off-by: Colin Cross <ccross@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c