aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-bit.c
diff options
context:
space:
mode:
authorKarsten Graul <[email protected]>2020-07-18 15:06:18 +0200
committerDavid S. Miller <[email protected]>2020-07-19 15:30:23 -0700
commit1ad24058335427d046b2e5666bcd15a62ad9e242 (patch)
treed5011e7cb053277f387c64a1c9d1425f96327b5a /lib/mpi/mpi-bit.c
parentfd7f3a746582e8b17c48d4d8087d38c91f59ba67 (diff)
net/smc: fix restoring of fallback changes
When a listen socket is closed then all non-accepted sockets in its accept queue are to be released. Inside __smc_release() the helper smc_restore_fallback_changes() restores the changes done to the socket without to check if the clcsocket has a file set. This can result in a crash. Fix this by checking the file pointer first. Reviewed-by: Ursula Braun <[email protected]> Fixes: f536dffc0b79 ("net/smc: fix closing of fallback SMC sockets") Signed-off-by: Karsten Graul <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-bit.c')
0 files changed, 0 insertions, 0 deletions