提交 920b8d91 编写于 作者: C Changli Gao 提交者: David S. Miller

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: NChangli Gao <xiaosuo@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f6dafa95
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册