Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 920b8d91 authored by Changli Gao's avatar Changli Gao Committed by David S. Miller
Browse files

af_packet: fix freeing pg_vec twice on error path



It is introduced in:
        commit 0e3125c7
        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: default avatarChangli Gao <xiaosuo@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f6dafa95
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -2409,7 +2409,6 @@ static struct pgv *alloc_pg_vec(struct tpacket_req *req, int order)

out_free_pgvec:
	free_pg_vec(pg_vec, order, block_nr);
	kfree(pg_vec);
	pg_vec = NULL;
	goto out;
}