video: rockchip: hdmi: misc clean up to hdmi driver
[firefly-linux-kernel-4.4.55.git] / drivers / android / binder.c
index f0ce9959d14dfd8ea50818a2d609b7999080e7f3..57f52a2afa356788d4ee18f02867361da2b20a26 100644 (file)
@@ -2081,7 +2081,7 @@ static int binder_thread_write(struct binder_proc *proc,
                        if (get_user(cookie, (binder_uintptr_t __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);