]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - arch/x86/kernel/kprobes/core.c
kprobes/x86: Use hlist_for_each_entry() instead of hlist_for_each_entry_safe()
[linux.git] / arch / x86 / kernel / kprobes / core.c
index eb3509338ae01ac69097d3decb922075ab63cb6a..520b8dfe164026cf53b762f87b8f507401384969 100644 (file)
@@ -745,7 +745,7 @@ __visible __used void *trampoline_handler(struct pt_regs *regs)
         *       will be the real return address, and all the rest will
         *       point to kretprobe_trampoline.
         */
-       hlist_for_each_entry_safe(ri, tmp, head, hlist) {
+       hlist_for_each_entry(ri, head, hlist) {
                if (ri->task != current)
                        /* another task is sharing our hash bucket */
                        continue;