summaryrefslogtreecommitdiff
path: root/net/smc/af_smc.c
diff options
context:
space:
mode:
authorKarsten Graul <kgraul@linux.ibm.com>2020-07-18 16:06:17 +0300
committerDavid S. Miller <davem@davemloft.net>2020-07-20 01:30:23 +0300
commitfd7f3a746582e8b17c48d4d8087d38c91f59ba67 (patch)
tree8819d5305359b89f27a46c976c47695c3a31f369 /net/smc/af_smc.c
parent741a49a4dc5fd7e61b37b259dde915083c2c5327 (diff)
downloadlinux-fd7f3a746582e8b17c48d4d8087d38c91f59ba67.tar.xz
net/smc: remove freed buffer from list
Two buffers are allocated for each SMC connection. Each buffer is added to a buffer list after creation. When the second buffer allocation fails, the first buffer is freed but not deleted from the list. This might result in crashes when another connection picks up the freed buffer later and starts to work with it. Reviewed-by: Ursula Braun <ubraun@linux.ibm.com> Fixes: 6511aad3f039 ("net/smc: change smc_buf_free function parameters") Signed-off-by: Karsten Graul <kgraul@linux.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/af_smc.c')
0 files changed, 0 insertions, 0 deletions