In the Linux kernel, the following vulnerability has been resolved:
tty: goldfish: Use ttyportdestroy() to destroy port
In goldfishttyprobe(), the port initialized through ttyportinit() should be destroyed in error paths.In goldfishttyremove(), qtty->port also should be destroyed or else might leak resources.
Fix the above by calling ttyportdestroy().