|
@@ -294,14 +294,14 @@ static void **alloc_pg_vec(struct netlink_sock *nlk,
|
|
{
|
|
{
|
|
unsigned int block_nr = req->nm_block_nr;
|
|
unsigned int block_nr = req->nm_block_nr;
|
|
unsigned int i;
|
|
unsigned int i;
|
|
- void **pg_vec, *ptr;
|
|
|
|
|
|
+ void **pg_vec;
|
|
|
|
|
|
pg_vec = kcalloc(block_nr, sizeof(void *), GFP_KERNEL);
|
|
pg_vec = kcalloc(block_nr, sizeof(void *), GFP_KERNEL);
|
|
if (pg_vec == NULL)
|
|
if (pg_vec == NULL)
|
|
return NULL;
|
|
return NULL;
|
|
|
|
|
|
for (i = 0; i < block_nr; i++) {
|
|
for (i = 0; i < block_nr; i++) {
|
|
- pg_vec[i] = ptr = alloc_one_pg_vec_page(order);
|
|
|
|
|
|
+ pg_vec[i] = alloc_one_pg_vec_page(order);
|
|
if (pg_vec[i] == NULL)
|
|
if (pg_vec[i] == NULL)
|
|
goto err1;
|
|
goto err1;
|
|
}
|
|
}
|