From e36c7575fc56dea06fd9c7c70127e28dca529037 Mon Sep 17 00:00:00 2001 From: Bryan Duff Date: Wed, 15 Apr 2009 09:07:26 -0500 Subject: [PATCH] condition: compile fix for 2.6.30-rc --- doc/changelog.txt | 1 + extensions/xt_condition.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/doc/changelog.txt b/doc/changelog.txt index d511eb4..cf7c650 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,5 +1,6 @@ +- condition: compile fix for 2.6.30-rc - fuzzy: fix bogus comparison logic leftover from move to new 1.4.3 API - ipp2p: fix bogus varargs call - ipp2p: fix typo in error message diff --git a/extensions/xt_condition.c b/extensions/xt_condition.c index cfcaa13..28792a4 100644 --- a/extensions/xt_condition.c +++ b/extensions/xt_condition.c @@ -161,7 +161,9 @@ static bool condition_mt_check(const struct xt_mtchk_param *par) var->refcount = 1; var->enabled = false; +#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 29) var->status_proc->owner = THIS_MODULE; +#endif var->status_proc->data = var; wmb(); var->status_proc->read_proc = condition_proc_read;