Commit 55e5a94b authored by Jeroen Vreeken's avatar Jeroen Vreeken Committed by David S. Miller

[NETROM]: Update wrt. ax25_cb refcounting changes.

parent 0a026723
...@@ -735,7 +735,7 @@ void nr_link_failed(ax25_cb *ax25, int reason) ...@@ -735,7 +735,7 @@ void nr_link_failed(ax25_cb *ax25, int reason)
if (nr_neigh == NULL) return; if (nr_neigh == NULL) return;
nr_neigh->ax25 = NULL; nr_neigh->ax25 = NULL;
// ax25_cb_put(ax25); ax25_cb_put(ax25);
if (++nr_neigh->failed < sysctl_netrom_link_fails_count) { if (++nr_neigh->failed < sysctl_netrom_link_fails_count) {
nr_neigh_put(nr_neigh); nr_neigh_put(nr_neigh);
...@@ -829,7 +829,7 @@ int nr_route_frame(struct sk_buff *skb, ax25_cb *ax25) ...@@ -829,7 +829,7 @@ int nr_route_frame(struct sk_buff *skb, ax25_cb *ax25)
ax25s = ax25_send_frame(skb, 256, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev); ax25s = ax25_send_frame(skb, 256, (ax25_address *)dev->dev_addr, &nr_neigh->callsign, nr_neigh->digipeat, nr_neigh->dev);
if (nr_neigh->ax25 && ax25s) { if (nr_neigh->ax25 && ax25s) {
/* We were already holding this ax25_cb */ /* We were already holding this ax25_cb */
// ax25_cb_put(ax25s); ax25_cb_put(ax25s);
} }
nr_neigh->ax25 = ax25s; nr_neigh->ax25 = ax25s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment