netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] af_packet: fix freeing pg_vec twice on error path
@ 2010-12-07 15:05 Changli Gao
  2010-12-08 18:44 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Changli Gao @ 2010-12-07 15:05 UTC (permalink / raw)
  To: David S. Miller
  Cc: Eric Dumazet, Jiri Pirko, Neil Horman, netdev, Changli Gao

It is introduced in:
        commit 0e3125c755445664f00ad036e4fc2cd32fd52877
        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>
---
 net/packet/af_packet.c |    1 -
 1 file changed, 1 deletion(-)
diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c
index 0e152b1..d163f78 100644
--- a/net/packet/af_packet.c
+++ b/net/packet/af_packet.c
@@ -2408,7 +2408,6 @@ out:
 
 out_free_pgvec:
 	free_pg_vec(pg_vec, order, block_nr);
-	kfree(pg_vec);
 	pg_vec = NULL;
 	goto out;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] af_packet: fix freeing pg_vec twice on error path
  2010-12-07 15:05 [PATCH] af_packet: fix freeing pg_vec twice on error path Changli Gao
@ 2010-12-08 18:44 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2010-12-08 18:44 UTC (permalink / raw)
  To: xiaosuo; +Cc: eric.dumazet, jpirko, nhorman, netdev

From: Changli Gao <xiaosuo@gmail.com>
Date: Tue,  7 Dec 2010 23:05:18 +0800

> It is introduced in:
>         commit 0e3125c755445664f00ad036e4fc2cd32fd52877
>         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>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-12-08 18:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-07 15:05 [PATCH] af_packet: fix freeing pg_vec twice on error path Changli Gao
2010-12-08 18:44 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).