Re: [PATCH] xen/xenbus: handle potential dangling pointer issue in xen_pcibk_xenbus_probe

2024-05-29 Thread Yunseong Kim
On 5/29/24 9:27 오후, Jürgen Groß wrote: > On 29.05.24 14:22, ysk...@gmail.com wrote: >> From: Yunseong Kim >> >> If 'xen_pcibk_init_devices()' fails. This ensures that 'pdev->xdev' does >> not point to 'xdev' when 'pdev' is freed. >> >> Signed-off-by: Yunseong Kim >> --- >>   drivers/xen/xen-pc

Re: [PATCH] xen/xenbus: handle potential dangling pointer issue in xen_pcibk_xenbus_probe

2024-05-29 Thread Jürgen Groß
On 29.05.24 14:22, ysk...@gmail.com wrote: From: Yunseong Kim If 'xen_pcibk_init_devices()' fails. This ensures that 'pdev->xdev' does not point to 'xdev' when 'pdev' is freed. Signed-off-by: Yunseong Kim --- drivers/xen/xen-pciback/xenbus.c | 1 + 1 file changed, 1 insertion(+) diff --gi

[PATCH] xen/xenbus: handle potential dangling pointer issue in xen_pcibk_xenbus_probe

2024-05-29 Thread yskelg
From: Yunseong Kim If 'xen_pcibk_init_devices()' fails. This ensures that 'pdev->xdev' does not point to 'xdev' when 'pdev' is freed. Signed-off-by: Yunseong Kim --- drivers/xen/xen-pciback/xenbus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/xen/xen-pciback/xenbus.c b/drivers/