summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorDexuan Cui <decui@microsoft.com>2026-04-16 22:14:33 +0300
committerJakub Kicinski <kuba@kernel.org>2026-04-20 21:44:43 +0300
commitf6315295899415f1ddcf39f7c9cb46d25e2c6c6a (patch)
treefceabab6d10ebab26183908dbf15aa191e4f42dc /include/linux/debugobjects.h
parentb94769eb2f30e61e86cd8551c084c34134290d89 (diff)
downloadlinux-f6315295899415f1ddcf39f7c9cb46d25e2c6c6a.tar.xz
hv_sock: Report EOF instead of -EIO for FIN
Commit f0c5827d07cb unluckily causes a regression for the FIN packet, and the final read syscall gets an error rather than 0. Ideally, we would want to fix hvs_channel_readable_payload() so that it could return 0 in the FIN scenario, but it's not good for the hv_sock driver to use the VMBus ringbuffer's cached priv_read_index, which is internal data in the VMBus driver. Fix the regression in hv_sock by returning 0 rather than -EIO. Fixes: f0c5827d07cb ("hv_sock: Return the readable bytes in hvs_stream_has_data()") Cc: stable@vger.kernel.org Reported-by: Ben Hillis <Ben.Hillis@microsoft.com> Reported-by: Mitchell Levy <levymitchell0@gmail.com> Signed-off-by: Dexuan Cui <decui@microsoft.com> Acked-by: Stefano Garzarella <sgarzare@redhat.com> Link: https://patch.msgid.link/20260416191433.840637-1-decui@microsoft.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions