X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=net%2Fx25%2Fx25_forward.c;h=056a55f3a8719f9bc6e7ff2336b16cc5e6994292;hb=cb28a1bbdb4790378e7366d6c9ee1d2340b84f92;hp=8738ec7ce69336dd1960d9e3c8c9a0e1fa68a0e4;hpb=12998096cc48563a04ca751965ba17c3f73a5461;p=linux-2.6-omap-h63xx.git diff --git a/net/x25/x25_forward.c b/net/x25/x25_forward.c index 8738ec7ce69..056a55f3a87 100644 --- a/net/x25/x25_forward.c +++ b/net/x25/x25_forward.c @@ -12,7 +12,7 @@ #include #include -struct list_head x25_forward_list = LIST_HEAD_INIT(x25_forward_list); +LIST_HEAD(x25_forward_list); DEFINE_RWLOCK(x25_forward_list_lock); int x25_forward_call(struct x25_address *dest_addr, struct x25_neigh *from, @@ -118,13 +118,14 @@ int x25_forward_data(int lci, struct x25_neigh *from, struct sk_buff *skb) { goto out; if ( (skbn = pskb_copy(skb, GFP_ATOMIC)) == NULL){ - goto out; + goto output; } x25_transmit_link(skbn, nb); - x25_neigh_put(nb); rc = 1; +output: + x25_neigh_put(nb); out: return rc; }