diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index 10735051785d153dcf8fce45e2d1c25605613120..0654133efbe4be31e7264f2da4b775d18194a98d 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2960,7 +2960,7 @@ static void binder_transaction(struct binder_proc *proc,
 		t->from = thread;
 	else
 		t->from = NULL;
-	t->sender_euid = proc->cred->euid;
+	t->sender_euid = task_euid(proc->tsk);
 	t->to_proc = target_proc;
 	t->to_thread = target_thread;
 	t->code = tr->code;