From 5aee8738ed76ef69c27c0460514a345c700962f7 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 7 Aug 2009 10:35:52 +0200 Subject: [PATCH] quota2: fix invalid page access in cleanup function --- extensions/xt_quota2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/xt_quota2.c b/extensions/xt_quota2.c index 5f75342..fbc8aab 100644 --- a/extensions/xt_quota2.c +++ b/extensions/xt_quota2.c @@ -173,7 +173,7 @@ static void quota_mt2_destroy(const struct xt_mtdtor_param *par) struct xt_quota_mtinfo2 *q = par->matchinfo; struct xt_quota_counter *e = q->master; - if (*e->name == '\0') { + if (*q->name == '\0') { kfree(e); return; }