[PATCH 5.4 019/177] binder: fix incorrect calculation for num_valid