Unverified Commit f71d543d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!11817 uio_hv_generic: Fix kernel NULL pointer dereference in hv_uio_rescind

parents a7d98ce7 7728c63c
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -104,10 +104,11 @@ static void hv_uio_channel_cb(void *context)

/*
 * 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)
{
	struct hv_device *hv_dev = channel->primary_channel->device_obj;
	struct hv_device *hv_dev = channel->device_obj;
	struct hv_uio_private_data *pdata = hv_get_drvdata(hv_dev);

	/*