netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.6.26-rc4] fix double call of kfree_skb in net/llc/llc_sap.c
@ 2008-05-27  7:09 Dmitry Petukhov
  2008-05-27  7:31 ` Wei Yongjun
  0 siblings, 1 reply; 9+ messages in thread
From: Dmitry Petukhov @ 2008-05-27  7:09 UTC (permalink / raw)
  To: davem; +Cc: netdev, acme

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);
 }

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

end of thread, other threads:[~2008-05-30  9:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-27  7:09 [PATCH 2.6.26-rc4] fix double call of kfree_skb in net/llc/llc_sap.c Dmitry Petukhov
2008-05-27  7:31 ` Wei Yongjun
2008-05-27  8:00   ` Dmitry Petukhov
     [not found]   ` <84ee89da0805270047v1c76b4f3k5768fe853f2cea1d@mail.gmail.com>
     [not found]     ` <483BC1B0.2090600@cn.fujitsu.com>
     [not found]       ` <84ee89da0805270235t7ae75356la2ffbb5244de2f74@mail.gmail.com>
2008-05-28 10:59         ` Dmitry Petukhov
2008-05-28 20:16           ` Arnaldo Carvalho de Melo
2008-05-29  8:51             ` Dmitry Petukhov
2008-05-29 10:45               ` David Miller
2008-05-29 13:44                 ` [PATCH][LLC]: Fix double accounting of received packets Arnaldo Carvalho de Melo
2008-05-30  9:57                   ` 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).