On Sun, 2012-08-19 at 23:05 +0800, Lin Ming wrote:
On Sun, Aug 19, 2012 at 10:45 PM, Eric Dumazet [off-list ref] wrote:
quoted
On Sun, 2012-08-19 at 22:15 +0800, Lin Ming wrote:
quoted
Will it still has problem if code goes here without sock_hold(sk)?
Not sure of what you mean.
See my comments in the function.
Is that a potential problem?
No problem.
It always been like that. Thats the whole point having a refcount at the
first place.
The last sock_put(sk) should free the socket.