From: Karsten Graul <kgraul@xxxxxxxxxxxxx> Date: Thu, 17 Sep 2020 22:46:02 +0200 > From: Ursula Braun <ubraun@xxxxxxxxxxxxx> > > If smc_listen_rmda_finish() returns with an error, the storage > addressed by 'buf' is freed a second time. > Consolidate freeing under a common label and jump to that label. > > Fixes: 6bb14e48ee8d ("net/smc: dynamic allocation of CLC proposal buffer") > Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> > Signed-off-by: Ursula Braun <ubraun@xxxxxxxxxxxxx> > Signed-off-by: Karsten Graul <kgraul@xxxxxxxxxxxxx> Applied.