When we create OPTE ports, one step is to create an xde device. However, we only call delete_xde in the Drop implementation on the port objects. If the create_port function fails after having created the xde device, the xde data link will never be cleaned up.
We need to be sure to call delete_xde if create_port fails, before returning from the function.
When we create OPTE ports, one step is to create an
xdedevice. However, we only calldelete_xdein theDropimplementation on the port objects. If thecreate_portfunction fails after having created thexdedevice, thexdedata link will never be cleaned up.We need to be sure to call
delete_xdeifcreate_portfails, before returning from the function.