aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2016-02-28 10:39:15 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2016-02-28 10:39:15 -0500
commit8da51430ff28d2f2daa570f060b1c9fbba81c81a (patch)
tree9b554e64b51fd2ae3289b44af4d05276cb862eea
parent62718e304aa603b1fcea9f965c604fc652ac87ba (diff)
parent7a64cd887fdb97f074c3fda03bee0bfb9faceac3 (diff)
Merge tag 'staging-4.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging
Pull staging/android fix from Greg KH: "Here is one patch, for the android binder driver, to resolve a reported problem. Turns out it has been around for a while (since 3.15), so it is good to finally get it resolved. It has been in linux-next for a while with no reported issues" * tag 'staging-4.5-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: drivers: android: correct the size of struct binder_uintptr_t for BC_DEAD_BINDER_DONE
-rw-r--r--drivers/android/binder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/android/binder.c b/drivers/android/binder.c
index a39e85f9efa9..7d00b7a015ea 100644
--- a/drivers/android/binder.c
+++ b/drivers/android/binder.c
@@ -2074,7 +2074,7 @@ static int binder_thread_write(struct binder_proc *proc,
2074 if (get_user(cookie, (binder_uintptr_t __user *)ptr)) 2074 if (get_user(cookie, (binder_uintptr_t __user *)ptr))
2075 return -EFAULT; 2075 return -EFAULT;
2076 2076
2077 ptr += sizeof(void *); 2077 ptr += sizeof(cookie);
2078 list_for_each_entry(w, &proc->delivered_death, entry) { 2078 list_for_each_entry(w, &proc->delivered_death, entry) {
2079 struct binder_ref_death *tmp_death = container_of(w, struct binder_ref_death, work); 2079 struct binder_ref_death *tmp_death = container_of(w, struct binder_ref_death, work);
2080 2080