Commit ea2141fa authored by Arnaldo Carvalho de Melo's avatar Arnaldo Carvalho de Melo Committed by David S. Miller

[LLC]: fix procfs reading when there are saps without sockets

parent bb2432e6
...@@ -48,8 +48,6 @@ static struct sock *llc_get_sk_idx(loff_t pos) ...@@ -48,8 +48,6 @@ static struct sock *llc_get_sk_idx(loff_t pos)
--pos; --pos;
} }
read_unlock_bh(&sap->sk_list.lock); read_unlock_bh(&sap->sk_list.lock);
if (!pos)
break;
} }
sk = NULL; sk = NULL;
found: found:
......
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