Revert "uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind"
This reverts commit 80b4034890
.
This commit is contained in:
parent
2fa99f4c04
commit
8223ecb73a
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue