Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 06bc419b authored by Neeti Desai's avatar Neeti Desai Committed by David Ng
Browse files

Revert "staging: android: binder: fix alignment issues"



This reverts commit d53b62f2.

Change-Id: Ib7fd21210f7c410a804a6aab0ab577282c280c2f
Signed-off-by: default avatarNeeti Desai <neetid@codeaurora.org>
Signed-off-by: default avatarAjay Dudani <adudani@codeaurora.org>
parent 8c31bfb0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1252,7 +1252,7 @@ static void binder_transaction_buffer_release(struct binder_proc *proc,
		struct flat_binder_object *fp;
		if (*offp > buffer->data_size - sizeof(*fp) ||
		    buffer->data_size < sizeof(*fp) ||
		    !IS_ALIGNED(*offp, sizeof(u32))) {
		    !IS_ALIGNED(*offp, sizeof(void *))) {
			pr_err("transaction release %d bad offset %zd, size %zd\n",
			 debug_id, *offp, buffer->data_size);
			continue;
@@ -1505,7 +1505,7 @@ static void binder_transaction(struct binder_proc *proc,
		struct flat_binder_object *fp;
		if (*offp > t->buffer->data_size - sizeof(*fp) ||
		    t->buffer->data_size < sizeof(*fp) ||
		    !IS_ALIGNED(*offp, sizeof(u32))) {
		    !IS_ALIGNED(*offp, sizeof(void *))) {
			binder_user_error("%d:%d got transaction with invalid offset, %zd\n",
					proc->pid, thread->pid, *offp);
			return_error = BR_FAILED_REPLY;