net: smc: fix spurious error message from __sock_release()
authorDmitry Antipov <dmantipov@yandex.ru>
Mon, 12 Feb 2024 14:34:02 +0000 (17:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 14 Feb 2024 10:56:02 +0000 (10:56 +0000)
commit6cf9ff463317217d95732a6cce6fbdd12508921a
treec3d7e8060b29e57930892d7c690c5c5133adfeff
parentd9a31cdab78932d9565d41812142dd1d415fc813
net: smc: fix spurious error message from __sock_release()

Commit 67f562e3e147 ("net/smc: transfer fasync_list in case of fallback")
leaves the socket's fasync list pointer within a container socket as well.
When the latter is destroyed, '__sock_release()' warns about its non-empty
fasync list, which is a dangling pointer to previously freed fasync list
of an underlying TCP socket. Fix this spurious warning by nullifying
fasync list of a container socket.

Fixes: 67f562e3e147 ("net/smc: transfer fasync_list in case of fallback")
Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/smc/af_smc.c