Re: [PATCH] xen/xenbus: handle pointer to NULL in alloc/free_pdev

2024-05-29 Thread Jürgen Groß
On 29.05.24 15:19, ysk...@gmail.com wrote: From: Yunseong Kim Modify 'alloc_pdev()' to set 'pdev->xdev' to NULL if 'xen_pcibk_init_devices()' fails. This ensures that 'pdev->xdev' does not point to 'xdev' when 'pdev' is freed. And modify 'free_pdev()' to set 'pdev' to NULL. Signed-off-by: Yuns

[PATCH] xen/xenbus: handle pointer to NULL in alloc/free_pdev

2024-05-29 Thread yskelg
From: Yunseong Kim Modify 'alloc_pdev()' to set 'pdev->xdev' to NULL if 'xen_pcibk_init_devices()' fails. This ensures that 'pdev->xdev' does not point to 'xdev' when 'pdev' is freed. And modify 'free_pdev()' to set 'pdev' to NULL. Signed-off-by: Yunseong Kim --- drivers/xen/xen-pciback/xenbus