Skip to contentSkip to conversation

af_packet: fix freeing pg_vec twice on error path

PATCH Applied Changli Gao 2 participants 2 messages Dec 7, 2010 – Dec 8, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 af_packet: fix freeing pg_vec twice on error path

It is introduced in:
commit 0e3125c755445664f00ad036e4fc2cd32fd52877
Author: Neil Horman <[email protected]>
Date: Tue Nov 16 10:26:47 2010 -0800

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

---
 net/packet/af_packet.c |    1 -
 1 file changed, 1 deletion(-)
net/packet/af_packet.c +0 -1
index 0e152b1..d163f78 100644
@@ -2408,7 +2408,6 @@ out:
 
 out_free_pgvec:
 	free_pg_vec(pg_vec, order, block_nr);
-	kfree(pg_vec);
 	pg_vec = NULL;
 	goto out;
 }
maintainer Applied
#1 lore raw

From: Changli Gao <[email protected]>
Date: Tue, 7 Dec 2010 23:05:18 +0800

Quoted 8 lines

It is introduced in:
commit 0e3125c755445664f00ad036e4fc2cd32fd52877
Author: Neil Horman <[email protected]>
Date: Tue Nov 16 10:26:47 2010 -0800

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

Applied.