xt_ACCOUNT: call free_pages(x,2)

Below is the patch with the *rest* of the free_page(X) calls changed
to free_pages(X, 2). xt_ACCOUNT should always allocate memory in page
pairs. And always *free* memory in page pairs.

References: http://www.spinics.net/lists/netfilter-devel/msg39025.html
This commit is contained in:
Neil P. Murphy
2015-10-19 01:34:54 -04:00
committed by Jan Engelhardt
parent a9358542fe
commit f89f10bbe9

View File

@@ -141,7 +141,7 @@ static void ipt_acc_data_free(void *data, uint8_t depth)
unsigned int b;
for (b = 0; b <= 255; b++) {
if (mask_16->mask_24[b]) {
free_page((unsigned long)mask_16->mask_24[b]);
free_pages((unsigned long)mask_16->mask_24[b], 2);
}
}
free_pages((unsigned long)data, 2);
@@ -158,10 +158,10 @@ static void ipt_acc_data_free(void *data, uint8_t depth)
for (b = 0; b <= 255; b++) {
if (mask_16->mask_24[b]) {
free_page((unsigned long)mask_16->mask_24[b]);
free_pages((unsigned long)mask_16->mask_24[b], 2);
}
}
free_page((unsigned long)mask_16);
free_pages((unsigned long)mask_16, 2);
}
}
free_pages((unsigned long)data, 2);