quota2: fix invalid page access in cleanup function

This commit is contained in:
Jan Engelhardt
2009-08-07 10:35:52 +02:00
parent 1111edfd85
commit 5aee8738ed

View File

@@ -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;
}