kernel_samsung_a53x/drivers/hv
Naman Jain e18149c5ff Drivers: hv: vmbus: Fix rescind handling in uio_hv_generic
commit 6fd28941447bf2c8ca0f26fda612a1cabc41663f upstream.

Rescind offer handling relies on rescind callbacks for some of the
resources cleanup, if they are registered. It does not unregister
vmbus device for the primary channel closure, when callback is
registered. Without it, next onoffer does not come, rescind flag
remains set and device goes to unusable state.

Add logic to unregister vmbus for the primary channel in rescind callback
to ensure channel removal and relid release, and to ensure that next
onoffer can be received and handled properly.

Cc: stable@vger.kernel.org
Fixes: ca3cda6fcf1e ("uio_hv_generic: add rescind support")
Signed-off-by: Naman Jain <namjain@linux.microsoft.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Link: https://lore.kernel.org/r/20240829071312.1595-3-namjain@linux.microsoft.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-23 23:21:07 +01:00
..
channel.c Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening 2024-11-18 23:19:52 +01:00
channel_mgmt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
connection.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_balloon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_fcopy.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_kvp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_snapshot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_trace.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_trace.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_trace_balloon.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_util.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_utils_transport.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hv_utils_transport.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hyperv_vmbus.h Drivers: hv: vmbus: Add vmbus_requestor data structure for VMBus hardening 2024-11-18 23:19:52 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ring_buffer.c Drivers: hv: vmbus: Drop error message when 'No request id available' 2024-11-18 23:19:53 +01:00
vmbus_drv.c Drivers: hv: vmbus: Fix rescind handling in uio_hv_generic 2024-11-23 23:21:07 +01:00