Re: [patch net-next] smc: some potential use after free bugs

2017-01-26 Thread Dan Carpenter
On Thu, Jan 26, 2017 at 12:23:02PM +0100, Ursula Braun wrote: > > On 01/26/2017 10:05 AM, Dan Carpenter wrote: > > Say we got really unlucky and these failed on the last iteration, then > > it could lead to a use after free bug. > thanks for reporting this! I had already a similar patch prepared,

Re: [patch net-next] smc: some potential use after free bugs

2017-01-26 Thread Ursula Braun
On 01/26/2017 10:05 AM, Dan Carpenter wrote: > Say we got really unlucky and these failed on the last iteration, then > it could lead to a use after free bug. thanks for reporting this! I had already a similar patch prepared, but not yet submitted. It contains all your added lines plus these addit

[patch net-next] smc: some potential use after free bugs

2017-01-26 Thread Dan Carpenter
Say we got really unlucky and these failed on the last iteration, then it could lead to a use after free bug. Fixes: cd6851f30386 ("smc: remote memory buffers (RMBs)") Signed-off-by: Dan Carpenter diff --git a/net/smc/smc_core.c b/net/smc/smc_core.c index 8b1d34378829..941279e1504e 100644 --- a/