> From: Yang Yingliang <yangyingliang@xxxxxxxxxx> > Sent: Wednesday, November 9, 2022 10:56 PM > ... > In the error path of vmbus_device_register(), device_unregister() is > called, hv_device has already been freed in vmbus_device_release(), > remove the kfree() in vmbus_add_channel_work() to avoid double free. This is not obvious. Can you please add a comment for this before the invokcation of vmbus_device_register() in vmbus_add_channel_work()?