Re: [PATCH net] tcp: ulp: avoid module refcnt leak in tcp_set_ulp

2017-08-14 Thread David Miller
From: Sabrina Dubroca Date: Mon, 14 Aug 2017 18:04:24 +0200 > __tcp_ulp_find_autoload returns tcp_ulp_ops after taking a reference on > the module. Then, if ->init fails, tcp_set_ulp propagates the error but > nothing releases that reference. > > Fixes: 734942cc4ea6 ("tcp: ULP infrastructure") >

[PATCH net] tcp: ulp: avoid module refcnt leak in tcp_set_ulp

2017-08-14 Thread Sabrina Dubroca
__tcp_ulp_find_autoload returns tcp_ulp_ops after taking a reference on the module. Then, if ->init fails, tcp_set_ulp propagates the error but nothing releases that reference. Fixes: 734942cc4ea6 ("tcp: ULP infrastructure") Signed-off-by: Sabrina Dubroca --- Tom, the generalized ULP version has