Re: [patch net-next 1/2] [PATCH] net: ip, raw_diag -- Fix socket leaking for destroy request

2016-11-02 Thread David Ahern
On 11/2/16 6:36 AM, Cyrill Gorcunov wrote: > In raw_diag_destroy the helper raw_sock_get returns > with sock_hold call, so we have to put it then. > > CC: David S. Miller > CC: Eric Dumazet > CC: David Ahern > CC: Andrey

[patch net-next 1/2] [PATCH] net: ip, raw_diag -- Fix socket leaking for destroy request

2016-11-02 Thread Cyrill Gorcunov
In raw_diag_destroy the helper raw_sock_get returns with sock_hold call, so we have to put it then. CC: David S. Miller CC: Eric Dumazet CC: David Ahern CC: Andrey Vagin CC: Stephen Hemminger