aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2023-07-17 15:12:08 -0300
committerJason Gunthorpe <[email protected]>2023-07-26 10:20:06 -0300
commitea2d6124b52389aa837403f5debf73620d3f441f (patch)
treedca9b008395dc718b4d958510f1c7e068d93e64d /lib/test_fortify/write_overflow-memcpy.c
parent31422dff187b243c58f3a97d16bbe9e9ada639fe (diff)
iommufd: Reorganize iommufd_device_attach into iommufd_device_change_pt
The code flow for first time attaching a PT and replacing a PT is very similar except for the lowest do_attach step. Reorganize this so that the do_attach step is a function pointer. Replace requires destroying the old HWPT once it is replaced. This destruction cannot be done under all the locks that are held in the function pointer, so the signature allows returning a HWPT which will be destroyed by the caller after everything is unlocked. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Lu Baolu <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Tested-by: Nicolin Chen <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions