compat: fix endless recursion in flush_scheduled_work
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 2 Aug 2012 16:28:01 +0000 (18:28 +0200)
committerLuis R. Rodriguez <mcgrof@frijolero.org>
Mon, 6 Aug 2012 18:37:36 +0000 (11:37 -0700)
The hader file defines flush_scheduled_work(a)
compat_flush_scheduled_work(a), which causes flush_scheduled_work() and
compat_flush_scheduled_work() to be the same function.

With this patch it calls the actual function in the kernel.

This fixes problems when unloading mac80211 from compat-wireless.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Luis R. Rodriguez <mcgrof@frijolero.org>
compat/compat-2.6.36.c

index 8f25be0a1e35aca65588f2942ec55b92471880ba..05b41c2b227db468e9aae20ce2e4f6f6dadfbdbf 100644 (file)
@@ -133,6 +133,7 @@ int compat_schedule_delayed_work_on(int cpu,
 }
 EXPORT_SYMBOL_GPL(compat_schedule_delayed_work_on);
 
+#undef flush_scheduled_work(a)
 void compat_flush_scheduled_work(void)
 {
        /*