[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <84ee89da0805270009xe92f7e1l959fa9161c976db2@mail.gmail.com>
Date: Tue, 27 May 2008 13:09:53 +0600
From: "Dmitry Petukhov" <dmgenp@...il.com>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org, acme@...stprotocols.net
Subject: [PATCH 2.6.26-rc4] fix double call of kfree_skb in net/llc/llc_sap.c
in function llc_sap_state_proces there was lack of return statement,
and finalizing kfree_skb might be called after skb was already freed
or queued to the user.
following patch adds the necessary return.
---
--- a/net/llc/llc_sap.c 2008-05-27 12:52:01.000000000 +0600
+++ b/net/llc/llc_sap.c 2008-05-27 12:52:37.000000000 +0600
@@ -223,6 +223,7 @@
if (sock_queue_rcv_skb(skb->sk, skb))
kfree_skb(skb);
}
+ return;
}
kfree_skb(skb);
}
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists