aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix
diff options
context:
space:
mode:
authorNeil Horman <nhorman@tuxdriver.com>2010-07-20 02:45:56 -0400
committerDavid S. Miller <davem@davemloft.net>2010-07-20 16:28:05 -0400
commit70d4bf6d467a330ccc947df9b2608e329d9e7708 (patch)
tree477dff26ac865f785e9197065e4807daeb89958c /net/unix
parent4b706372f18de53970e4c6887a96459590fef80a (diff)
drop_monitor: convert some kfree_skb call sites to consume_skb
Convert a few calls from kfree_skb to consume_skb Noticed while I was working on dropwatch that I was detecting lots of internal skb drops in several places. While some are legitimate, several were not, freeing skbs that were at the end of their life, rather than being discarded due to an error. This patch converts those calls sites from using kfree_skb to consume_skb, which quiets the in-kernel drop_monitor code from detecting them as drops. Tested successfully by myself Signed-off-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix')
-rw-r--r--net/unix/af_unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 75ba48b0d12a..4414a18c63b4 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1906,7 +1906,7 @@ static int unix_stream_recvmsg(struct kiocb *iocb, struct socket *sock,
1906 break; 1906 break;
1907 } 1907 }
1908 1908
1909 kfree_skb(skb); 1909 consume_skb(skb);
1910 1910
1911 if (siocb->scm->fp) 1911 if (siocb->scm->fp)
1912 break; 1912 break;