Re: [PATCH v2 20/20] vfio/ccw: Fix the missed unrealize() call in error path

2024-05-22 Thread Cédric Le Goater
Huth ; open list:vfio-ccw Subject: Re: [PATCH v2 20/20] vfio/ccw: Fix the missed unrealize() call in error path On 5/22/24 06:40, Zhenzhong Duan wrote: When get name failed, we should call unrealize() so that vfio_ccw_realize() is self contained. Fixes: 909a6254eda ("vfio/ccw: Make vfio cde

RE: [PATCH v2 20/20] vfio/ccw: Fix the missed unrealize() call in error path

2024-05-22 Thread Duan, Zhenzhong
pen list:vfio-ccw >Subject: Re: [PATCH v2 20/20] vfio/ccw: Fix the missed unrealize() call in >error path > >On 5/22/24 06:40, Zhenzhong Duan wrote: >> When get name failed, we should call unrealize() so that >> vfio_ccw_realize() is self contained. >> >> Fixes:

Re: [PATCH v2 20/20] vfio/ccw: Fix the missed unrealize() call in error path

2024-05-22 Thread Cédric Le Goater
On 5/22/24 06:40, Zhenzhong Duan wrote: When get name failed, we should call unrealize() so that vfio_ccw_realize() is self contained. Fixes: 909a6254eda ("vfio/ccw: Make vfio cdev pre-openable by passing a file handle") Signed-off-by: Zhenzhong Duan If the realize handler fails, the unreali

[PATCH v2 20/20] vfio/ccw: Fix the missed unrealize() call in error path

2024-05-21 Thread Zhenzhong Duan
When get name failed, we should call unrealize() so that vfio_ccw_realize() is self contained. Fixes: 909a6254eda ("vfio/ccw: Make vfio cdev pre-openable by passing a file handle") Signed-off-by: Zhenzhong Duan --- hw/vfio/ccw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --gi