]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/unix/garbage.c
[NET]: Kill skb->list
[linux-2.6-omap-h63xx.git] / net / unix / garbage.c
index 4bd95c8f5934a5ca77d265bfdf01e046339ca634..46252d2807bb6fd5c491488328955dac2d9f6d3f 100644 (file)
@@ -286,16 +286,16 @@ void unix_gc(void)
                        skb = skb_peek(&s->sk_receive_queue);
                        while (skb &&
                               skb != (struct sk_buff *)&s->sk_receive_queue) {
-                               nextsk=skb->next;
+                               nextsk = skb->next;
                                /*
                                 *      Do we have file descriptors ?
                                 */
-                               if(UNIXCB(skb).fp)
-                               {
-                                       __skb_unlink(skb, skb->list);
-                                       __skb_queue_tail(&hitlist,skb);
+                               if (UNIXCB(skb).fp) {
+                                       __skb_unlink(skb,
+                                                    &s->sk_receive_queue);
+                                       __skb_queue_tail(&hitlist, skb);
                                }
-                               skb=nextsk;
+                               skb = nextsk;
                        }
                        spin_unlock(&s->sk_receive_queue.lock);
                }