Messages in this thread | | | Subject | Re: IPv4 BUG: held lock freed! | From | Eric Dumazet <> | Date | Sun, 19 Aug 2012 17:55:08 +0200 |
| |
On Sun, 2012-08-19 at 23:05 +0800, Lin Ming wrote: > On Sun, Aug 19, 2012 at 10:45 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote: > > On Sun, 2012-08-19 at 22:15 +0800, Lin Ming wrote: > > > >> 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.
| |