linux/drivers/android
Dan Carpenter 003aee2277 UPSTREAM: ANDROID: binder: re-order some conditions
It doesn't make any difference to runtime but I've switched these two
checks to make my static checker happy.

The problem is that "buffer->data_size" is user controlled and if it's
less than "sizeo(*hdr)" then that means "offset" can be more than
"buffer->data_size".  It's just cleaner to check it in the other order.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Martijn Coenen <maco@android.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 361f2ddbb0)

Change-Id: I098d525ba63d125caa9840e6e1d5004bf70edc3c
2018-07-19 22:01:13 +05:30
..
binder_alloc_selftest.c FROMLIST: android: binder: Add global lru shrinker to binder 2017-09-18 21:14:31 +01:00
binder_alloc.c UPSTREAM: android: binder: use VM_ALLOC to get vm area 2018-07-19 22:00:56 +05:30
binder_alloc.h UPSTREAM: android: binder: Check for errors in binder_alloc_shrinker_init(). 2018-07-19 21:59:59 +05:30
binder_trace.h ANDROID: binder: Add tracing for binder priority inheritance. 2017-10-15 23:29:17 +05:30
binder.c UPSTREAM: ANDROID: binder: re-order some conditions 2018-07-19 22:01:13 +05:30
Kconfig FROMLIST: android: binder: Add allocator selftest 2017-09-18 21:14:31 +01:00
Makefile FROMLIST: android: binder: Add allocator selftest 2017-09-18 21:14:31 +01:00