diff options
author | Yick Xie <yick.xie@gmail.com> | 2024-04-18 20:06:10 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-05-02 17:35:31 +0300 |
commit | da9e2f58830a7060159328db74a64b83a4b0c54b (patch) | |
tree | f5c1377a18ad12fd3461bf51f636672cbb9fd86c /drivers/misc | |
parent | 180214690137025f0e1fa034e8aff1848a3f53c3 (diff) | |
download | linux-da9e2f58830a7060159328db74a64b83a4b0c54b.tar.xz |
udp: preserve the connected status if only UDP cmsg
commit 680d11f6e5427b6af1321932286722d24a8b16c1 upstream.
If "udp_cmsg_send()" returned 0 (i.e. only UDP cmsg),
"connected" should not be set to 0. Otherwise it stops
the connected socket from using the cached route.
Fixes: 2e8de8576343 ("udp: add gso segment cmsg")
Signed-off-by: Yick Xie <yick.xie@gmail.com>
Cc: stable@vger.kernel.org
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://lore.kernel.org/r/20240418170610.867084-1-yick.xie@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
0 files changed, 0 insertions, 0 deletions