Revert "uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind"

This reverts commit 80b4034890.
This commit is contained in:
Ksawlii 2024-11-24 00:23:37 +01:00
parent 2fa99f4c04
commit 8223ecb73a

View file

@ -104,11 +104,10 @@ static void hv_uio_channel_cb(void *context)
/* /*
* Callback from vmbus_event when channel is rescinded. * Callback from vmbus_event when channel is rescinded.
* It is meant for rescind of primary channels only.
*/ */
static void hv_uio_rescind(struct vmbus_channel *channel) static void hv_uio_rescind(struct vmbus_channel *channel)
{ {
struct hv_device *hv_dev = channel->device_obj; struct hv_device *hv_dev = channel->primary_channel->device_obj;
struct hv_uio_private_data *pdata = hv_get_drvdata(hv_dev); struct hv_uio_private_data *pdata = hv_get_drvdata(hv_dev);
/* /*