diff options
| author | Karsten Graul <[email protected]> | 2021-12-27 13:35:30 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2021-12-27 14:46:17 +0000 |
| commit | 6d7373dabfd3933ee30c40fc8c09d2a788f6ece1 (patch) | |
| tree | 5d0710bc18de96399506cd99e77f045c10defd99 /net/unix/af_unix.c | |
| parent | ip6_vti: initialize __ip6_tnl_parm struct in vti6_siocdevprivate (diff) | |
| download | kernel-6d7373dabfd3933ee30c40fc8c09d2a788f6ece1.tar.gz kernel-6d7373dabfd3933ee30c40fc8c09d2a788f6ece1.zip | |
net/smc: fix using of uninitialized completions
In smc_wr_tx_send_wait() the completion on index specified by
pend->idx is initialized and after smc_wr_tx_send() was called the wait
for completion starts. pend->idx is used to get the correct index for
the wait, but the pend structure could already be cleared in
smc_wr_tx_process_cqe().
Introduce pnd_idx to hold and use a local copy of the correct index.
Fixes: 09c61d24f96d ("net/smc: wait for departure of an IB message")
Signed-off-by: Karsten Graul <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
