ACPI / APEI: Add missing synchronize_rcu() on NOTIFY_SCI removal
[pandora-kernel.git] / drivers / acpi / apei / ghes.c
index e8c4899..bc9828d 100644 (file)
@@ -953,6 +953,7 @@ static int __devexit ghes_remove(struct platform_device *ghes_dev)
                if (list_empty(&ghes_sci))
                        unregister_acpi_hed_notifier(&ghes_notifier_sci);
                mutex_unlock(&ghes_list_mutex);
+               synchronize_rcu();
                break;
        case ACPI_HEST_NOTIFY_NMI:
                mutex_lock(&ghes_list_mutex);