aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-11-19 16:11:34 +0800
committerWei Liu <wei.liu@kernel.org>2022-11-21 10:57:41 +0000
commitf92a4b50f0bd7fd52391dc4bb9a309085d278f91 (patch)
treea1ae08f87f16b436c0a745b80d5da701d3bad520 /scripts/stackusage
parentPCI: hv: Only reuse existing IRTE allocation for Multi-MSI (diff)
downloadlinux-f92a4b50f0bd7fd52391dc4bb9a309085d278f91.tar.gz
linux-f92a4b50f0bd7fd52391dc4bb9a309085d278f91.zip
Drivers: hv: vmbus: fix double free in the error path of vmbus_add_channel_work()
In the error path of vmbus_device_register(), device_unregister() is called, which calls vmbus_device_release(). The latter frees the struct hv_device that was passed in to vmbus_device_register(). So remove the kfree() in vmbus_add_channel_work() to avoid a double free. Fixes: c2e5df616e1a ("vmbus: add per-channel sysfs info") Suggested-by: Michael Kelley <mikelley@microsoft.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Reviewed-by: Michael Kelley <mikelley@microsoft.com> Link: https://lore.kernel.org/r/20221119081135.1564691-2-yangyingliang@huawei.com Signed-off-by: Wei Liu <wei.liu@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions