ipvs: Add boundary check on ioctl arguments
[safe/jmp/linux-2.6] / net / netfilter / xt_quota.c
index 01dd07b..390b7d0 100644 (file)
@@ -52,8 +52,9 @@ static bool quota_mt_check(const struct xt_mtchk_param *par)
 
        q->master = kmalloc(sizeof(*q->master), GFP_KERNEL);
        if (q->master == NULL)
-               return -ENOMEM;
+               return false;
 
+       q->master->quota = q->quota;
        return true;
 }