mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 05:34:58 +02:00
xt_quota2: reduce printf complexity
This commit is contained in:
@@ -153,15 +153,13 @@ static int quota_mt2_check(const struct xt_mtchk_param *par)
|
|||||||
|
|
||||||
q->name[sizeof(q->name)-1] = '\0';
|
q->name[sizeof(q->name)-1] = '\0';
|
||||||
if (*q->name == '.' || strchr(q->name, '/') != NULL) {
|
if (*q->name == '.' || strchr(q->name, '/') != NULL) {
|
||||||
printk(KERN_ERR "xt_quota<%u>: illegal name\n",
|
printk(KERN_ERR "xt_quota.3: illegal name\n");
|
||||||
par->match->revision);
|
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
q->master = q2_get_counter(q);
|
q->master = q2_get_counter(q);
|
||||||
if (q->master == NULL) {
|
if (q->master == NULL) {
|
||||||
printk(KERN_ERR "xt_quota<%u>: memory alloc failure\n",
|
printk(KERN_ERR "xt_quota.3: memory alloc failure\n");
|
||||||
par->match->revision);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user