RE: [PATCH 1/2] Drivers: hv: vmbus: fix double free in the error path of vmbus_add_channel_work()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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()?






[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux