Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VSOCK: make af_vsock.ko removable again
Commit c1eef22 ("vsock: always call vsock_init_tables()") introduced a module_init() function without a corresponding module_exit() function. Modules with an init function can only be removed if they also have an exit function. Therefore the vsock module was considered "permanent" and could not be removed. This patch adds an empty module_exit() function so that "rmmod vsock" works. No explicit cleanup is required because: 1. Transports call vsock_core_exit() upon exit and cannot be removed while sockets are still alive. 2. vsock_diag.ko does not perform any action that requires cleanup by vsock.ko. Fixes: c1eef22 ("vsock: always call vsock_init_tables()") Reported-by: Xiumei Mu <[email protected]> Cc: Cong Wang <[email protected]> Cc: Jorgen Hansen <[email protected]> Signed-off-by: Stefan Hajnoczi <[email protected]> Reviewed-by: Jorgen Hansen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
- Loading branch information