]> Git Repo - linux.git/commit
vfio: Move vfio_device driver open/close code to a function
authorJason Gunthorpe <[email protected]>
Tue, 29 Nov 2022 20:31:46 +0000 (16:31 -0400)
committerJason Gunthorpe <[email protected]>
Fri, 2 Dec 2022 15:52:03 +0000 (11:52 -0400)
commit294aaccb50130f596943be892c5d3a3568b76c57
tree4c088ece14eebed89cc345300ef6d4687a9c5801
parent2a54e347d990574ceb047b71ea0b03979232b85e
vfio: Move vfio_device driver open/close code to a function

This error unwind is getting complicated. Move all the code into two
pair'd function. The functions should be called when the open_count == 1
after incrementing/before decrementing.

Link: https://lore.kernel.org/r/[email protected]
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Yi Liu <[email protected]>
Reviewed-by: Alex Williamson <[email protected]>
Tested-by: Alex Williamson <[email protected]>
Tested-by: Yi Liu <[email protected]>
Tested-by: Nicolin Chen <[email protected]>
Tested-by: Lixiao Yang <[email protected]>
Tested-by: Matthew Rosato <[email protected]>
Tested-by: Yu He <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
drivers/vfio/vfio_main.c
This page took 0.052528 seconds and 4 git commands to generate.