Message ID | 1457565114-13060-1-git-send-email-kamal@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/drivers/staging/android/binder.c b/drivers/staging/android/binder.c index 1432d95..c3997bd 100644 --- a/drivers/staging/android/binder.c +++ b/drivers/staging/android/binder.c @@ -2017,7 +2017,7 @@ static int binder_thread_write(struct binder_proc *proc, if (get_user(cookie, (void __user * __user *)ptr)) return -EFAULT; - ptr += sizeof(void *); + ptr += sizeof(cookie); list_for_each_entry(w, &proc->delivered_death, entry) { struct binder_ref_death *tmp_death = container_of(w, struct binder_ref_death, work); if (tmp_death->cookie == cookie) {