Revert "Bluetooth: Store advertising handle so it can be re-enabled"
[platform/kernel/linux-rpi.git] / kernel / kprobes.c
index 0c6185a..b486504 100644 (file)
@@ -2253,7 +2253,7 @@ int register_kretprobe(struct kretprobe *rp)
        if (!rp->rph)
                return -ENOMEM;
 
-       rp->rph->rp = rp;
+       rcu_assign_pointer(rp->rph->rp, rp);
        for (i = 0; i < rp->maxactive; i++) {
                inst = kzalloc(struct_size(inst, data, rp->data_size), GFP_KERNEL);
                if (inst == NULL) {
@@ -2313,7 +2313,7 @@ void unregister_kretprobes(struct kretprobe **rps, int num)
 #ifdef CONFIG_KRETPROBE_ON_RETHOOK
                rethook_free(rps[i]->rh);
 #else
-               rps[i]->rph->rp = NULL;
+               rcu_assign_pointer(rps[i]->rph->rp, NULL);
 #endif
        }
        mutex_unlock(&kprobe_mutex);