X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fx25%2Fx25_forward.c;h=056a55f3a8719f9bc6e7ff2336b16cc5e6994292;hb=4ce5f24193cef2e26f182ce708e94ba1f5fafc0c;hp=8738ec7ce69336dd1960d9e3c8c9a0e1fa68a0e4;hpb=e0cc09e295f346b7921e921f385fe5213472316a;p=karo-tx-linux.git diff --git a/net/x25/x25_forward.c b/net/x25/x25_forward.c index 8738ec7ce693..056a55f3a871 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; }