af_packet: fix freeing pg_vec twice on error path

It is introduced in:
        commit 0e3125c755
        Author: Neil Horman <nhorman@tuxdriver.com>
        Date:   Tue Nov 16 10:26:47 2010 -0800

        packet: Enhance AF_PACKET implementation to not require high order contiguous memory allocation (v4)

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Changli Gao 2010-12-07 05:05:18 +00:00 committed by David S. Miller
parent f6dafa95d1
commit 920b8d913b
1 changed files with 0 additions and 1 deletions

View File

@ -2409,7 +2409,6 @@ out:
out_free_pgvec:
free_pg_vec(pg_vec, order, block_nr);
kfree(pg_vec);
pg_vec = NULL;
goto out;
}